Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help in macro

Hi,

I run a text report from our software & then I open that
text report into XL (Delimited Function). One of the
column has time & it is in the order of HHHH:MM:SS

Sometimes if the column has only minutes & seconds, I will
see :MM:SS OR if only seconds then :SS - I have to convert
the formating of every single cell & manually change the
numbers. I am using XL 97 & its really pain in the neck to
change every single cell. I am wondering if anyone can
tell me an alternate way of handling this issue or create
a macro to add 0's automatically infront of the colons
instead of doing it manually.

Thanks,

Kash
  #2   Report Post  
Posted to microsoft.public.excel.programming
JRL JRL is offline
external usenet poster
 
Posts: 2
Default Help in macro

Try the FORMAT function in VBA . . .look at Format in the
help for VBA. It gives several pretty good examples. I'm
sure something there might work for you . . .just play
around with it until you get what you want.

Hope that helps.

JRL
-----Original Message-----
Hi,

I run a text report from our software & then I open that
text report into XL (Delimited Function). One of the
column has time & it is in the order of HHHH:MM:SS

Sometimes if the column has only minutes & seconds, I

will
see :MM:SS OR if only seconds then :SS - I have to

convert
the formating of every single cell & manually change the
numbers. I am using XL 97 & its really pain in the neck

to
change every single cell. I am wondering if anyone can
tell me an alternate way of handling this issue or

create
a macro to add 0's automatically infront of the colons
instead of doing it manually.

Thanks,

Kash
.

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
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 1 June 11th 05 12:44 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 0 June 10th 05 03:38 PM


All times are GMT +1. The time now is 05:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"