Nelson78
Well-known Member
- Joined
- Sep 11, 2017
- Messages
- 526
- Office Version
- 2007
Hello everybody.
I'm grasping datas from a website via vba, but I'm struggling with the
Run Time Error '1004' PasteSpecial method of worksheet class failed
This is the impacted part of the code:
The code selects all correctly (I see the highlighted page).
The error is, of course, on the following line:
Any ideas?
I'm grasping datas from a website via vba, but I'm struggling with the
Run Time Error '1004' PasteSpecial method of worksheet class failed
This is the impacted part of the code:
Code:
IE.ExecWB 17, 0 ' SelectAll
IE.ExecWB 12, 2 ' Copy selection
ActiveSheet.PasteSpecial Format:="Text", link:=False, DisplayAsIcon:=False
Range("A1").PasteSpecial
The code selects all correctly (I see the highlighted page).
The error is, of course, on the following line:
Code:
ActiveSheet.PasteSpecial Format:="Text", link:=False, DisplayAsIcon:=False
Any ideas?