LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don Don is offline
external usenet poster
 
Posts: 487
Default Exporting Time Formatted Numbers inside Macros

I have a Macro that exports certain pieces of data into a ".TXT" file.
Everything is working well, but today, I am trying to add to columns to the
export file, both of which are stored as Custom "h:mm" time values.

Currently, for example, the following values are in the spreadsheet, and
when they arrive in mt text file, they look as follows:

6:15 ------ .260416666666667
15:06 ----- .629166666666667
6:45 ------ .28125
16:51 ----- .702083333333333

The commands to capture the values to be exported in my macro as as follows:

ST2 = Range("K" + currow2).Value
ET2 = Range("L" + currow2).Value

Column K contains the 6:15 and 6:45 values from above, and column L contains
15:06 and 16:51 (obviously all the values are in different rows of the
different columns)

I would like the export file to simply show 6:15, 15:06, 6:45, 16:51, as
they are in the spreadsheet.





 
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
Exporting time from cell in 24 hr format dhinrichs47 Excel Worksheet Functions 3 October 5th 06 05:27 PM
Why are 1/2 my numbers imported as text and the rest as numbers? KBear Excel Discussion (Misc queries) 2 April 21st 06 01:40 PM
Converting Numbers to Time MB Excel Worksheet Functions 4 February 19th 05 02:39 AM
update row numbers after different active cells in macros followi. LMIV Excel Discussion (Misc queries) 11 February 16th 05 12:44 AM
entering numbers to display a time format Ian Williams/Eazygig Excel Discussion (Misc queries) 1 January 10th 05 11:57 AM


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