Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need help pasting to open external workbook with vba

I need to copy a range of data in an active worksheet(say workbook
A.xls) to a worksheet in an open workbook in another instance of excel
97 (say workbook B.xls). I can programatically accomplish the copy
part from A. I can even then manually select a cell in the other open
workbook (B) and manualy paste the range, but I have been unable so
far to accomplish the paste in vba. I suspect that I need to make
B.xls the active workbook and then the paste will work. How do I
switch the active workbook to B?

Curtis
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need help pasting to open external workbook with vba

Curtis,

You can try this.


Workbooks("B.xls").Range("A3").PasteSpecial Paste:=xlPasteAll


HTH

Charles


---
Message posted from http://www.ExcelForum.com/

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to: Open closed workbook/Search data tables/Return data to open workbook Hugh Adams Excel Discussion (Misc queries) 0 August 18th 10 02:04 PM
inadvertent external links when copy/pasting JB Excel Discussion (Misc queries) 3 March 7th 09 08:56 PM
Formatting - Pasting fm external app sjs Excel Discussion (Misc queries) 1 January 23rd 08 05:40 PM
External data query leaves datasource workbook open WhytheQ Excel Discussion (Misc queries) 0 May 4th 06 03:54 PM
Links only update when external workbook is open CMB Excel Worksheet Functions 6 November 8th 05 12:39 AM


All times are GMT +1. The time now is 04:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"