Nelson78
Well-known Member
- Joined
- Sep 11, 2017
- Messages
- 526
- Office Version
- 2007
Hello everybody.
I'm struggling with scraping data from the web with sendkeys method.
I'm now in a situation where, apparently SendKeys "^c" works but SendKeys "^v" has not effect.
I mean: at the end of the failing macro, if I manually do ctrl+v, in sheet 3 cell A1 appears what I've copied with SendKeys "^c".
Any ideas?
I'm struggling with scraping data from the web with sendkeys method.
I'm now in a situation where, apparently SendKeys "^c" works but SendKeys "^v" has not effect.
I mean: at the end of the failing macro, if I manually do ctrl+v, in sheet 3 cell A1 appears what I've copied with SendKeys "^c".
Any ideas?
Code:
SendKeys "^a"
Application.Wait (Now + TimeValue("0:00:03"))
SendKeys "^c"
Application.Wait (Now + TimeValue("0:00:03"))
AppActivate ("Microsoft excel")
Sheets(3).Select
Range("A1").Select
Application.Wait (Now + TimeValue("0:00:10"))
SendKeys "^v"
Application.Wait (Now + TimeValue("0:00:10"))
Last edited: