Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2007

Tip: Looking for answers? Try searching our database.

How to automatically add a worksheet using macro?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eva - 05 Dec 2007 11:12 GMT
Can I add adding a worksheet in a macro? How do I do that?
Ex. I create a new macro. One of the steps in my macro is to insert a new
worksheet.
Dave Peterson - 05 Dec 2007 12:27 GMT
Dim NewWks as worksheet
set NewWks = worksheets.add
with newwks
 .name = "Your New Name Here"
 .range("A1").value = "Hi there"
End with

> Can I add adding a worksheet in a macro? How do I do that?
> Ex. I create a new macro. One of the steps in my macro is to insert a new
> worksheet.

Signature

Dave Peterson

eva - 06 Dec 2007 01:49 GMT
Thank you

> Dim NewWks as worksheet
> set NewWks = worksheets.add
[quoted text clipped - 6 lines]
> > Ex. I create a new macro. One of the steps in my macro is to insert a new
> > worksheet.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.