Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Date in worksheet on opening ...

Michelle wrote:
*Hi all,

I have created an excel worksheet template and I want to
be able to have the date inserted into a cell on opening
a new worksheet.

I don't want to simply use the TODAY() function as I
don't want the date to change ...

Is it possible to write a function or macro that would
auto insert the date?

Thanks in advance ...

Michelle *


Hi Michelle

just add these 3 lines to the workbook open event.

dim mydate as date
mydate = Date
Range("a1").Value = mydate ' Remember to change this to the cell you
want to change.



HTH


---
Message posted from http://www.ExcelForum.com/

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
On opening a worksheet move focus to a cell based on date davcas Excel Worksheet Functions 1 July 1st 08 02:18 PM
opening worksheet maui172 Excel Discussion (Misc queries) 1 March 27th 08 11:23 PM
Opening a worksheet ssigler Excel Discussion (Misc queries) 1 May 12th 06 08:16 PM
Make date change in excel to current date when opening daily? jamie Excel Discussion (Misc queries) 3 March 1st 06 03:37 PM
Opening a Worksheet Dependant on Date Danny[_4_] Excel Programming 3 November 20th 03 12:26 AM


All times are GMT +1. The time now is 07:13 AM.

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

About Us

"It's about Microsoft Excel"