VBA: download from an external source and date format

Nelson78

Well-known Member
Joined
Sep 11, 2017
Messages
526
Office Version
  1. 2007
Hello everybody.

I'm stuck in the following situation.
I'm downloading data from an external source.
As you can see in the image, some of the dates are not correct: exactly, the ones in right alignement, written in letters.

For example, "martedì 4 gennaio 2022" is uncorrect: the correct date is "1 aprile 2022". So, in italian, it is not 04/01/2022 but it should be "01/04/2022".

Is there a way to regularize the download?

Thanks in advance.

Nelson
 

Attachments

  • Date.jpg
    Date.jpg
    26.3 KB · Views: 5

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
what are you downloading from is it a webpage are you using anything like power query?
 
Upvote 0
I get data from a webpage ending with .aspx
simply navigating this way:

VBA Code:
Set IE = CreateObject("InternetExplorer.Application")

With IE
    .navigate myURL
    .Visible = True
    Do While .Busy: DoEvents: Loop    
    Do While .readystate <> 4: DoEvents: Loop 
End With
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top