Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default renaming worksheet from within macro

I have a daily bookwork sheet that containes employee names. This file changes as employees come and go. I am writing a macro so that a person doing my daily books can select the day of the month from a list in excel. When they select the day, it will copy the original file... is there a way to do a "save as" from inside a macro. ex. on june 1st, hit the excel macro for that day, it will bring up the master file, rename it and save it as june 1. Doing the same with each day during the month. Therefore the master file with names can change to affect all days forward.

Open to any suggestions
Thanks for the help, Mark
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default renaming worksheet from within macro


Private Sub Macro1( )
If Not Listbox1.Text = "" Then
ActiveWorkbook.SaveAs Filename:= Listbox1.Tex
End Sub
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default renaming worksheet from within macro

To Chris
Thanks for the help. To be honest i don't really know how to use this info. Where can i learn more about this. Is this stuff actually done inside the worksheet? Don't expect you to teach me this, but would like some help with where to learn. I get computer stuff pretty quickly. Thanks again, Mark
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
Worksheet Renaming Eric Excel Discussion (Misc queries) 2 July 26th 07 02:44 PM
Worksheet Renaming Eric Excel Worksheet Functions 1 July 26th 07 02:38 PM
Get macro to run on any worksheet without renaming the sheet? Andrew B Excel Discussion (Misc queries) 6 July 26th 06 03:03 AM
need help renaming a worksheet jonwyn Excel Discussion (Misc queries) 2 March 1st 05 08:34 PM
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 10:25 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"