Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi Was wondering whether ANYONE can help! I am importing some data from a csv file into an xls, by pressing button (with macros behind it) - now what I am also looking to do i for the time and date to display on the form, once every import is don (through button click). 2 questions: 1) How do I get the macro to locate current system date? 2) How do I specify where I want the date to be located? Otherwis where would it locate the date on the spreadsheet? Ive tried this: Dim Today Today = Now But it didnt help! :- ( Thank you for looking at this! -- Pree ----------------------------------------------------------------------- Preet's Profile: http://www.excelforum.com/member.php...nfo&userid=315 View this thread: http://www.excelforum.com/showthread.php?threadid=39381 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Preet" wrote in message ... Hi Was wondering whether ANYONE can help! I am importing some data from a csv file into an xls, by pressing a button (with macros behind it) - now what I am also looking to do is for the time and date to display on the form, once every import is done (through button click). 2 questions: 1) How do I get the macro to locate current system date? That is Date 2) How do I specify where I want the date to be located? Otherwise where would it locate the date on the spreadsheet? Range("A1").Value = Format(Date,"dd mmm yyyy") |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() THANK YOU David! That worked - BUT! How do I get time displayed? (excluding seconds) THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YO THANK YOU THANK YOU :) THANK YOU THANK YOU THANK YOU THANK YO -- Pree ----------------------------------------------------------------------- Preet's Profile: http://www.excelforum.com/member.php...nfo&userid=315 View this thread: http://www.excelforum.com/showthread.php?threadid=39381 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Preet,
'Now' returns both the date and time, so you can use the Format function to return a date/time string in any format you want. E.g., Range("A1").Value = Format(Now, "mm/dd/yyyy hh:mm") -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Preet" wrote in message ... THANK YOU David! That worked - BUT! How do I get time displayed? (excluding seconds) THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU :) THANK YOU THANK YOU THANK YOU THANK YOU -- Preet ------------------------------------------------------------------------ Preet's Profile: http://www.excelforum.com/member.php...fo&userid=3155 View this thread: http://www.excelforum.com/showthread...hreadid=393818 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi Chris Thank you for ur reply, that worked! Very Grateful. Preet x -- Preet ------------------------------------------------------------------------ Preet's Profile: http://www.excelforum.com/member.php...fo&userid=3155 View this thread: http://www.excelforum.com/showthread...hreadid=393818 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Entering and displaying time | Excel Discussion (Misc queries) | |||
Converting text format of time/date into Excel time/date for subtr | Excel Worksheet Functions | |||
Displaying time from 00:00 to 0.00 | New Users to Excel | |||
Displaying Unix time as date and time | Excel Discussion (Misc queries) | |||
Calculating days & time left from start date/time to end date/time | Excel Worksheet Functions |