Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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
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 - copy/add to another sheet puiuluipui Excel Discussion (Misc queries) 1 March 9th 10 08:34 PM
Macro: Copy data to another sheet Anders[_2_] Excel Discussion (Misc queries) 3 October 18th 09 01:43 PM
Macro to copy a sheet and name it OdAwG Excel Discussion (Misc queries) 7 April 1st 07 10:22 PM
How to create a Macro to Copy Information in one sheet to another sheet. poppy Excel Programming 3 July 28th 04 07:26 AM
Macro to filter sheet and copy to another Tom Ogilvy Excel Programming 0 August 11th 03 06:34 PM


All times are GMT +1. The time now is 09:36 PM.

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"