Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to copy sheet
I need a macro that will copy an active sheet and put it in the front of the
workbook (1st Sheet). I would also like it to put the date in cell A3. Any suggestions? I have one that copies a sheet and places it before a specific sheet but I'm unsure how to tell it to move it to the beginning. Thanks, Chance |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to copy sheet
Hi Chance,
Here is some code ActiveSheet.Move befo=Worksheets(1) Range("A3").Value = Format(Date, "dd mmm yyyy") -- HTH RP (remove nothere from the email address if mailing direct) "Chance224" wrote in message ... I need a macro that will copy an active sheet and put it in the front of the workbook (1st Sheet). I would also like it to put the date in cell A3. Any suggestions? I have one that copies a sheet and places it before a specific sheet but I'm unsure how to tell it to move it to the beginning. Thanks, Chance |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to copy sheet
Thanks works great! I want to have the sheet auto name to the date in cell
B3 but I would like it to be in a different format. 3/10/2205 would be March 10 for the tab name. "Bob Phillips" wrote: Hi Chance, Here is some code ActiveSheet.Move befo=Worksheets(1) Range("A3").Value = Format(Date, "dd mmm yyyy") -- HTH RP (remove nothere from the email address if mailing direct) "Chance224" wrote in message ... I need a macro that will copy an active sheet and put it in the front of the workbook (1st Sheet). I would also like it to put the date in cell A3. Any suggestions? I have one that copies a sheet and places it before a specific sheet but I'm unsure how to tell it to move it to the beginning. Thanks, Chance |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to copy sheet
With Activesheet
.Name = Format(.Range("B3"),"mmm dd") End With -- HTH RP (remove nothere from the email address if mailing direct) "Chance224" wrote in message ... Thanks works great! I want to have the sheet auto name to the date in cell B3 but I would like it to be in a different format. 3/10/2205 would be March 10 for the tab name. "Bob Phillips" wrote: Hi Chance, Here is some code ActiveSheet.Move befo=Worksheets(1) Range("A3").Value = Format(Date, "dd mmm yyyy") -- HTH RP (remove nothere from the email address if mailing direct) "Chance224" wrote in message ... I need a macro that will copy an active sheet and put it in the front of the workbook (1st Sheet). I would also like it to put the date in cell A3. Any suggestions? I have one that copies a sheet and places it before a specific sheet but I'm unsure how to tell it to move it to the beginning. Thanks, Chance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
macro - copy/add to another sheet | Excel Discussion (Misc queries) | |||
Macro: Copy data to another sheet | Excel Discussion (Misc queries) | |||
Macro to copy a sheet and name it | Excel Discussion (Misc queries) | |||
How to create a Macro to Copy Information in one sheet to another sheet. | Excel Programming | |||
Macro to filter sheet and copy to another | Excel Programming |