LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Adding a Worksheet and Renaming

I am trying to add a Working in a Macro and then renaming the
Worksheet, but Excel likes to name the Sheets 1,2,3,etc, and you don't
know what the sheet name will be to select to rename at the time you
run the Macro. The following is a simple code that I have so far:
mnth = Cells(1, 4)
Sheets.Add
Sheets("Sheet2").Select
Sheets("Sheet2").Name = mnth

Can anyone help me get a solution to this problem?

Frank
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding/deleting ranges and renaming accordingly Michael Siegel[_2_] Excel Programming 0 April 10th 07 02:55 PM
renaming worksheet draganpi Excel Programming 2 April 6th 06 12:06 PM
adding a sheet and renaming oercim Excel Programming 2 March 29th 06 08:45 PM
Renaming adding and deleting directory alanford Excel Programming 2 February 16th 05 11:08 AM
Renaming the Worksheet through VBA abxy[_24_] Excel Programming 4 February 9th 04 07:32 PM


All times are GMT +1. The time now is 12:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"