Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am copying text from a web page, then pasting it into an Excel file. The
below code gets the job done using SENDKEYS and activesheet.paste. However, depending on the computer I'm using, activesheet.paste does not work ALL the time (usually the first time it errors out, then subsequent times it's ok). I am trying to find a better way to paste the data. Paste special doesn't give me many options (I tried paste as text, but it crashed Excel). Additionally, if anyone knows of a way to bring Excel to the front again in a more effective manner than <Alt-Tab through sendkeys, that would be appreciated as well. Here is the code: Sheets("Data").Select Range("B:E").ClearContents SendKeys "^(a)", False SendKeys "^(c)", False Application.Wait (Now + TimeValue("0:00:01")) SendKeys "%({TAB})", False Range("B1").Select ActiveSheet.Paste |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Overrighting ( bring to front) | Excel Discussion (Misc queries) | |||
Bring to Front | Excel Discussion (Misc queries) | |||
Bring series to front | Charts and Charting in Excel | |||
How do I bring a trendline in front of an object in Excel? | Charts and Charting in Excel | |||
How do i "bring to front" bubbles in excel bubble charts which ar. | Charts and Charting in Excel |