#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Date macro

Complete n0ob here,

I'm trying to write a macro that will copy a sheet from a worksheet into an
archive sheet (it's basically a History file of my orders to suppliers). One
cell has the current date (=TODAY) and when copied it copies the function,
completley ruining the whole idea of archiving. How can I change that cell
to the date I saved the file instead of updating everytime I open the
history file ?

I hope I'm understandable, and Thanx a bunch for the help.

Dr Fleau


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,316
Default Date macro

Just change A1 to the cell that has your date, and this macro will copy/paste
special value:

Range("A1").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues

--
Kevin Backmann


"Dr Fleau" wrote:

Complete n0ob here,

I'm trying to write a macro that will copy a sheet from a worksheet into an
archive sheet (it's basically a History file of my orders to suppliers). One
cell has the current date (=TODAY) and when copied it copies the function,
completley ruining the whole idea of archiving. How can I change that cell
to the date I saved the file instead of updating everytime I open the
history file ?

I hope I'm understandable, and Thanx a bunch for the help.

Dr Fleau



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Date macro

Beauty. Thanks a lot. Works like a charm.

Dr Fleau


"Kevin B" a écrit dans le message de
news: ...
Just change A1 to the cell that has your date, and this macro will
copy/paste
special value:

Range("A1").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues

--
Kevin Backmann



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 to Insert Current Date into cell - Macro to "Save As" Guy[_2_] Excel Worksheet Functions 4 December 12th 08 08:20 PM
Date Macro in_trouble Excel Discussion (Misc queries) 2 March 28th 07 03:06 AM
2 different ?'s: Date? Macro? RS Excel Worksheet Functions 11 November 2nd 06 11:53 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
A macro for the today's date...not the current date abxy[_18_] Excel Programming 7 February 8th 04 11:05 PM


All times are GMT +1. The time now is 02:28 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"