ClimoC
Well-known Member
- Joined
- Aug 21, 2009
- Messages
- 584
Hello,
My macro takes the value of a range of dates in dd/mm/yy format, and puts the date into a text field of a web form in IE, (also does some other copying-pasting)then submits the form. Problem is it pastes in American format - mm/dd/yy and this is incorrect for the webform.
I've tried manually typing the date into the field (as oppose to using the javascript calendar on the text field) and submitted, and the date is fine.
It is during the process of going from Excel to IE that the dates all get their numberformatting switched.
How can I tell excel to keep the numberformat as "dd/mm/yy"? I have been told that Office 2007 hates English dd/mm/yy format, but I'm in Excel 2003
Any help would be much appreciated
the bit where it assigns the value of the cell in the range is here (fields that are in dd/mm/yy numberformat are RED:
My macro takes the value of a range of dates in dd/mm/yy format, and puts the date into a text field of a web form in IE, (also does some other copying-pasting)then submits the form. Problem is it pastes in American format - mm/dd/yy and this is incorrect for the webform.
I've tried manually typing the date into the field (as oppose to using the javascript calendar on the text field) and submitted, and the date is fine.
It is during the process of going from Excel to IE that the dates all get their numberformatting switched.
How can I tell excel to keep the numberformat as "dd/mm/yy"? I have been told that Office 2007 hates English dd/mm/yy format, but I'm in Excel 2003
Any help would be much appreciated
the bit where it assigns the value of the cell in the range is here (fields that are in dd/mm/yy numberformat are RED:
Rich (BB code):
If TestcheckBox = True Then
ProTitle = Range("I" & R).Value
DurationTime = Range("Z" & R).Value
TransStart = Range("M" & R).Value
TransEnd = Range("M" & R).Value + 1
LineTX = Left(Range("L" & R).Value, 9)
VisFrom = Range("N" & R).Value
VisTo = Range("P" & R).Value