Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default code an input field that asks for current date

jaggyone:

try,

Range("A1") = CDate(VBA.InputBox("Input current date", Default:=Date))

--
天行健,君*以自強不息
地勢坤,君*以厚德載物

http://www.vba.com.tw/plog/


"jaggyone" wrote:

I would like to create a macro that will ask for the current date and input
the value into the header of a weekly report. How do I do this?

Thanks in advance,
jag

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
How do I show the current month in a date field? G-man[_2_] Excel Discussion (Misc queries) 5 May 27th 08 09:23 AM
Having input the current date in a cell I want to lock it Dave Peterson[_3_] Excel Programming 1 August 27th 04 01:22 AM
Having input the current date in a cell I want to lock it JE McGimpsey Excel Programming 0 August 26th 04 08:20 PM
Having input the current date in a cell I want to lock it Frank Kabel Excel Programming 0 August 26th 04 04:37 PM
CODE to select range based on User Input or Value of Input Field Sandi Gauthier Excel Programming 4 December 8th 03 03:22 PM


All times are GMT +1. The time now is 07:33 PM.

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"