Excel Sheet Tabs

villy

Active Member
Joined
May 15, 2011
Messages
489
I have been working with MS Excel for several years but started coding (VBA) for just a couple of months and still looking for some ideas..

I know somebody have the answer for my question, here it goes...
Is there a code in vba that I can tell excel how many number of sheet tabs should be in new workbook? In Tools/Options/General I know you can change it manually but I need it in code, why? Because I have a program that reads only when only two sheets exist in a new workbook otherwise it gives an error. I want the users (other than me) be able to use my program without error when they use it in their own computer.

Thanks for those who will share their ideas...
God bless

___________________________________________________
"For human, it is impossible but for God nothing is impossible."
 
Im sorry Mr. Andrew, it has been solved. The other tread I have is the "Tooltip for Excel Sheet Tabs".
Maybe you can help me with that if you have something brilliant idea.
Thanks
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,224,592
Messages
6,179,790
Members
452,942
Latest member
VijayNewtoExcel

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