VBA - Multiple Templates w/ One Worksheet - Adjust formats/formulas or hide unused columns?

AcDel

New Member
Joined
Aug 4, 2015
Messages
30
We have a large workbook in the office and we use it as a template for clients.

We have multiple worksheets that are very similar, but the main differences are the number of columns and sizes. I'd like to consolidate this with VBA so we are using 1 worksheet that can be adjusted to the proper template with VBA, rather than working with 5 different worksheets.

Would it be better to:
  • Have all the different already set up formats in the worksheet and hide the unused columns?
    • For example. Columns B:J would be one template, K:N would be another template, O:V would be another, etc.
  • OR would it be better to have VBA adjust all the necessary formatting?
    • This would include deleting cells, changing column sizes, removing/adding formulas

I'm trying to think of terms of performance and stability as both methods can be used to achieve the same result.

I hope that makes sense. Thanks in advance
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Numerous different directions you could go. Depends on what this is supposed to accomplish. What's the "why?" From what I can gather, it's to reduce visible clutter?

I'd create 5 template sheets, then hide them. Create an "Add a client" worksheet with a selection and a button to trigger the macro to copy the correct template to a new worksheet to make it easy to use.
 
Upvote 0
Numerous different directions you could go. Depends on what this is supposed to accomplish. What's the "why?" From what I can gather, it's to reduce visible clutter?

The reason is to reduce clutter and to have a long IFERROR code function properly, which references all the template sheets. Our process now is we have 10 templates in the workbook and the user hides the other 9 that will not be used for that particular client.

I'd create 5 template sheets, then hide them. Create an "Add a client" worksheet with a selection and a button to trigger the macro to copy the correct template to a new worksheet to make it easy to use.

That is essentially what we do now, but the issue I'm running into is I have a long IFERROR code that references these sheets. If I have to create a new sheet, then the new sheets won't be included in the formula and could defeat the purpose of it.

Right now the whole workbook has 120+ worksheets, so I'm really just trying to consolidate it as a whole and minimize the possibility for errors.

I appreciate your help with this.
 
Upvote 0

Forum statistics

Threads
1,215,646
Messages
6,126,004
Members
449,279
Latest member
Faraz5023

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top