Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Executing code with opening target workbook

The below working code copys cells from an open workbook and then opens the
target workbook and pastes the copied cells as links from the other
workbook. How can I make the below operation work without having to
actually open the target workbook located in "Workbooks.Open
Worksheets(4).Range("A6").Value"


Workbooks.Open Worksheets(4).Range("A6").Value
Range("A1").Select
ActiveSheet.Paste Link:=True


Thank you

Todd Huttenstine



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Executing code with opening target workbook

don't believe you can.

--
Regards,
Tom Ogilvy

Todd Huttenstine wrote in message
...
The below working code copys cells from an open workbook and then opens

the
target workbook and pastes the copied cells as links from the other
workbook. How can I make the below operation work without having to
actually open the target workbook located in "Workbooks.Open
Worksheets(4).Range("A6").Value"


Workbooks.Open Worksheets(4).Range("A6").Value
Range("A1").Select
ActiveSheet.Paste Link:=True


Thank you

Todd Huttenstine





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
Code for opening a workbook at a specific time!?! mike_vr Excel Discussion (Misc queries) 2 June 5th 07 04:55 PM
Executing code with opening target workbook Todd Huttenstine[_3_] Excel Programming 0 December 25th 03 08:39 PM
Performing code without opening the Workbook Marishah Warren Excel Programming 2 December 25th 03 10:04 AM
Code for Opening a Closed Workbook scrabtree23[_2_] Excel Programming 3 November 11th 03 03:48 PM
Code Changes Not Executing Justin[_8_] Excel Programming 1 October 24th 03 02:31 AM


All times are GMT +1. The time now is 05:54 PM.

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"