Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA noob - making the date appear on/from a form

Hi, I have an order sheet that I want to have the date added t
automatically as an order is entered.
The date just has to be timilar to Microsoft Excels TODAY() functio
but only entered once and not changeable after...

I need the code to generate 'todays date' for entry into the sheet
instead of having the user type the date in.....

is this possible

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default VBA noob - making the date appear on/from a form

It's easy to enter a date with code:

Sub EnterDate()
Range("A1").Value = Now
End Sub

This assumes that the cell already has the date format you want.

How you're going to make this code run is a more interesting question.

--
Jim Rech
Excel MVP

"Souljah " wrote in message
...
| Hi, I have an order sheet that I want to have the date added to
| automatically as an order is entered.
| The date just has to be timilar to Microsoft Excels TODAY() function
| but only entered once and not changeable after...
|
| I need the code to generate 'todays date' for entry into the sheet,
| instead of having the user type the date in.....
|
| is this possible?
|
|
| ---
| Message posted from http://www.ExcelForum.com/
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default VBA noob - making the date appear on/from a form

CDate(Now)

HTH, Greg

"Souljah " wrote in message
...
Hi, I have an order sheet that I want to have the date added to
automatically as an order is entered.
The date just has to be timilar to Microsoft Excels TODAY() function
but only entered once and not changeable after...

I need the code to generate 'todays date' for entry into the sheet,
instead of having the user type the date in.....

is this possible?


---
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
Making a form visible [email protected] Excel Discussion (Misc queries) 3 March 11th 07 02:28 PM
HELP! Making A Form at_a_loss Excel Worksheet Functions 1 February 25th 06 11:17 AM
Making form using Excell Help ASAP! ~Amanda~ Excel Discussion (Misc queries) 3 March 19th 05 01:51 AM
Making a new form Steven M. Britton Excel Discussion (Misc queries) 1 December 12th 04 09:09 PM
Making a form with only a certain amount of rows used Bob Reynolds[_2_] Excel Programming 5 November 30th 03 08:24 PM


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