ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to insert date at opening (https://www.excelbanter.com/excel-programming/343286-how-insert-date-opening.html)

Dr Fleau

How to insert date at opening
 
Hi y'alls, noob here.

I want certain Excel spread sheets (Quote and order forms) to insert the
current date in a certain cell at the file's opening. How can I do that, if
possible, avoiding any form of VBA. I get itches just thinking of VB.

Thanx a bunch

Pete



JE McGimpsey

How to insert date at opening
 
Then you should be using the itch-free
microsoft.public.excel.worksheet.functions newsgroup rather than
..programming <g

Try:

=TODAY()


In article <iay5f.20337$y_1.5006@edtnps89,
"Dr Fleau" wrote:

Hi y'alls, noob here.

I want certain Excel spread sheets (Quote and order forms) to insert the
current date in a certain cell at the file's opening. How can I do that, if
possible, avoiding any form of VBA. I get itches just thinking of VB.

Thanx a bunch

Pete


PCLIVE

How to insert date at opening
 
A formula can do that, but it will change to whatever day it is when you
open the workbook. Otherwise you will most likely need to use VB.

=NOW()
Format the cell as needed.


"Dr Fleau" wrote in message
news:iay5f.20337$y_1.5006@edtnps89...
Hi y'alls, noob here.

I want certain Excel spread sheets (Quote and order forms) to insert the
current date in a certain cell at the file's opening. How can I do that,
if
possible, avoiding any form of VBA. I get itches just thinking of VB.

Thanx a bunch

Pete





Bob Phillips[_6_]

How to insert date at opening
 
You need VBA

Private Sub Workbook_Open()
Worksheets("Quote").Range("A1").Value = Format(Date, "dd mmm yyyy")
Worksheets("order forms").Range("A1").Value = Format(Date, "dd mmm
yyyy")
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Dr Fleau" wrote in message
news:iay5f.20337$y_1.5006@edtnps89...
Hi y'alls, noob here.

I want certain Excel spread sheets (Quote and order forms) to insert the
current date in a certain cell at the file's opening. How can I do that,

if
possible, avoiding any form of VBA. I get itches just thinking of VB.

Thanx a bunch

Pete





PCLIVE

How to insert date at opening
 
Ok,

I'll leave the problem solving to you.
Do you think you can take a look at my posting from 3:27pm "Defined Name
Range (Application.Match)

Thanks,
Paul

"JE McGimpsey" wrote in message
...
Then you should be using the itch-free
microsoft.public.excel.worksheet.functions newsgroup rather than
.programming <g

Try:

=TODAY()


In article <iay5f.20337$y_1.5006@edtnps89,
"Dr Fleau" wrote:

Hi y'alls, noob here.

I want certain Excel spread sheets (Quote and order forms) to insert the
current date in a certain cell at the file's opening. How can I do that,
if
possible, avoiding any form of VBA. I get itches just thinking of VB.

Thanx a bunch

Pete





All times are GMT +1. The time now is 03:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com