LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
bob bob is offline
external usenet poster
 
Posts: 52
Default Excel2002 autoformats dates,

When I use VBA to copy a string from another application
(basiscally this is a screen scrape) if the string is in
the format 12/04/04 (dd/mm/yy) this is entered into a
spreadshett as 04/12/04. 13/04/04 would be unaffected as
either excel or XP knows that 04/13/04 is not a valid
date. I've tried using Cdate and then allocating the
variable the correct format (A=format(b,"dd/mm/yy"))
formating the cell (numberformat ="dd/mm/yy") but it
still does it! I also thought of using Cstr but VBA
interprets the string as a date so that won't work. I've
set my short date format on the machine to match,but no
good. Is my only solution SP3?
 
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
excel2002 JWD Setting up and Configuration of Excel 0 November 9th 09 03:55 PM
Text book Excel2002 VBA octet Excel Discussion (Misc queries) 1 May 22nd 09 12:02 PM
How do I color code a Pivot Table - not standard Autoformats? minks Excel Discussion (Misc queries) 2 March 7th 07 01:01 PM
Autoformats in Excel 2002 Gary Settery New Users to Excel 1 December 10th 04 10:29 PM
VBA and comments in Excel2002 Neil Garrard Excel Programming 2 February 25th 04 12:50 PM


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