LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Change contents of a cell with VBA


Hi everyone,

I'm a little stuck and desperate for advice! My brain has turned to
mush so now I turn you all for help. :)

I have a reference number in a receipting system. eg jd1407051455

The number is made up of two letters (initals of person), date (ddmmyy)
and 24 hour time (hhmm). Using VBA I have managed to split the number up
so that each piece of information sits in it's own column. (ie Column A
= name, B = date, C = time). This was done by copying, pasting and then
deleting irrelevant characters.

I now need to use VBA to insert the seperators so that excel recognises
these numbers as dates and times respectively.

eg. Instead of 140705 in a cell, I need 14/07/05 and instead of 1455 I
need 14:55.

I am at a complete loss as to how this can work. Just to throw a
spanner in the works - I need to somehow make it work on a complete
range (up to 1,000 rows of data) not just single cells.

If anyone has any ideas...I will be eternally grateful!

Thank you

sd


--
systematic
------------------------------------------------------------------------
systematic's Profile: http://www.excelforum.com/member.php...o&userid=25294
View this thread: http://www.excelforum.com/showthread...hreadid=491029

 
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
change cell contents when pull down menu choices change jb21 Excel Worksheet Functions 3 November 21st 08 10:34 PM
How do i change the colour of a cell according to the contents? ChrisC Excel Discussion (Misc queries) 2 October 10th 08 09:58 PM
change cell contents Mary Excel Programming 2 October 19th 05 11:16 PM
Insert new row as cell contents change George Excel Discussion (Misc queries) 2 January 26th 05 11:47 AM
Please help! Macro to change cell contents based on cell to the left Jennifer[_8_] Excel Programming 7 March 4th 04 01:06 AM


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