Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default How to Rename a Blank Sheet that a macro Creates


Howdie,

I have a Macro that goes into a Distribution list (sheet within excel),
selects certain people based on a criteria, copys that info, Inserts a
new sheet and pastes that info into the new sheet. I want to be able to
specify the name of the sheet that it creates (instead of just being a
consecutive sheet number) Ideas will be most welcome...

Thanks

D



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to Rename a Blank Sheet that a macro Creates

If the new sheet is active:
ActiveSheet.Name="New Name"

Mike F
"Darin Kramer" wrote in message
...

Howdie,

I have a Macro that goes into a Distribution list (sheet within excel),
selects certain people based on a criteria, copys that info, Inserts a
new sheet and pastes that info into the new sheet. I want to be able to
specify the name of the sheet that it creates (instead of just being a
consecutive sheet number) Ideas will be most welcome...

Thanks

D



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default How to Rename a Blank Sheet that a macro Creates

One way:

ThisWorkbook.Worksheets.Add(After:=Sheets(Sheets.C ount)).Name = "foo"


In article ,
Darin Kramer wrote:

Howdie,

I have a Macro that goes into a Distribution list (sheet within excel),
selects certain people based on a criteria, copys that info, Inserts a
new sheet and pastes that info into the new sheet. I want to be able to
specify the name of the sheet that it creates (instead of just being a
consecutive sheet number) Ideas will be most welcome...

Thanks

D

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default How to Rename a Blank Sheet that a macro Creates


Thanks!! Works perfectly!


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Reply
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
Macro REQ: Automatically copy a template sheet and rename MCSmarties Excel Worksheet Functions 5 October 11th 07 09:18 PM
macro to: Add new sheet, then rename new sheet with todays date Paul Excel Worksheet Functions 3 September 29th 07 03:17 AM
Imported Data creates blank cells that aren't really blank JackieD Excel Worksheet Functions 14 February 23rd 06 12:57 AM
MACRO TO RENAME SHEET ! Jay Dean Excel Programming 1 October 17th 03 08:58 AM
Macro to rename all worksheets with cell value in each sheet Max Excel Programming 1 July 11th 03 10:58 AM


All times are GMT +1. The time now is 01:27 AM.

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

About Us

"It's about Microsoft Excel"