G
Geoff Kelly
If I copy an entire web page in IE that contains dates in dd/mm/yyyy format
(also my regional setting), then paste into a spreadsheet with CTL-V, the
dates are interpreted correctly. (the dates are in a column of a table) If I
perform the same function from VBA with worksheet.paste, dates with days >
12 are OK but others are treated as mm/dd/yyyy format. A similar post
recently mentioned VBA uses mm/dd/yyyy format only. I have no control over
the web page format.
Using a web query works fine but the web page provides buttons to change the
range of dates displayed, and uses the post method so I can't use a web
query for other than the default date range. I have to manually click the
button (etc) to display the required period, then copy/paste into excel, I
am trying to automate the paste and subsequent analysis.
Does anyone have a better solution than pasting the same info as text and
writing my own complex decoding code just to get the date right?
Using Excel 2000 but alsow want it to work on 97.
One would think Microsoft programmers are ingorant of international date
formats, or is VBA only meant to be used in the US?
Geoff Kelly
(also my regional setting), then paste into a spreadsheet with CTL-V, the
dates are interpreted correctly. (the dates are in a column of a table) If I
perform the same function from VBA with worksheet.paste, dates with days >
12 are OK but others are treated as mm/dd/yyyy format. A similar post
recently mentioned VBA uses mm/dd/yyyy format only. I have no control over
the web page format.
Using a web query works fine but the web page provides buttons to change the
range of dates displayed, and uses the post method so I can't use a web
query for other than the default date range. I have to manually click the
button (etc) to display the required period, then copy/paste into excel, I
am trying to automate the paste and subsequent analysis.
Does anyone have a better solution than pasting the same info as text and
writing my own complex decoding code just to get the date right?
Using Excel 2000 but alsow want it to work on 97.
One would think Microsoft programmers are ingorant of international date
formats, or is VBA only meant to be used in the US?
Geoff Kelly