Can Worksheet.add do tab names, buttons, and VBA code?

KevH

Board Regular
Joined
Apr 24, 2007
Messages
104
Howdy all,

Thanks to the archive I was able to find a way to add worksheets and prepopulate some of the cells.

http://www.mrexcel.com/archive/VBA/6439.html

I was wondering if there is also a way to:

- set the name for the tab
- add a command button
- add the underlying VBA

I'm guessing the tab name is easy, but following what I can from the help files results in compile errors.
 
Sweet,

You even saved me from having to remind myself how visible worked... moments after I reminded myself how visible worked. :)
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Heh...I agree KevH...Norie has helped me many times! In fact, there's a good chance he helped me with the above code! :) This forum has quite a few rock stars who help out!! Norie, NateO, and Anne just being a few that have helped me with projects through the years!!! Good luck on your projects!

Cheers!

Dave

(y)
 
Upvote 0

Forum statistics

Threads
1,216,115
Messages
6,128,915
Members
449,478
Latest member
Davenil

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