![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Los Angeles, CA
Posts: 752
|
I am running a macro that starts in Excel goes to Word and returns to excel. And it won't paste what is in the clipboard. Any suggestions????As to why I get the following runtime error 1004??? I click on the debugger and the following line is highlighted
ActiveSheet.PasteSpecial Format:="Text" AppActivate "Microsoft Excel" Columns("A:A").Select Range("A1").Select ActiveSheet.PasteSpecial Format:="Text" Range("A1").Activate Oh, I am not an expert on code, please help. Thanks |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,064
|
common question you must set word as an objext to excel
i sugget opening he microsoft document sample.xls all laid out there and came with office all version from 97 on... VBA code is these also..
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
ActiveSheet.PasteSpecial Format:="Text" Should be; Activesheet.PasteSpecial Paste:=xlValues Format is not a valid Pastespecial command. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|