Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Defining a range in a different open workbook from the active one

I want to set a range in different workbook, PayRollCarryOver, from the
currently active one. PayRollCarryOver is open but not active.

What is the proper syntax for the link to another workbook?

I tried this, but got an error:

Set newCarryover = Range("[PayrollCarryOver.xls]'Carryover'!A1")

Thank you.

John Wirt
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Defining a range in a different open workbook from the active one

John,
Work you way through the Object Model:

Dim newCarryover as Range
Set newCarryover =
Workbooks("PayrollCarryOver.xls").Worksheets("Carr yover").Range("A1")

NickHK

"JWirt" wrote in message
...
I want to set a range in different workbook, PayRollCarryOver, from the
currently active one. PayRollCarryOver is open but not active.

What is the proper syntax for the link to another workbook?

I tried this, but got an error:

Set newCarryover = Range("[PayrollCarryOver.xls]'Carryover'!A1")

Thank you.

John Wirt



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 a workbook per active window Jackie[_2_] Excel Discussion (Misc queries) 1 August 19th 08 11:13 PM
Why does a new Excel Workbook open with IV1 as the active cell? pjwing Excel Discussion (Misc queries) 1 July 3rd 07 11:26 PM
Making an open workbook active Jay Oken Excel Programming 1 March 19th 05 11:44 PM
Get range value active workbook on open add-in Ajtb Excel Programming 1 February 11th 05 01:52 PM
How do I make an open workbook the active workbook Don Guillett[_4_] Excel Programming 0 December 30th 03 04:28 PM


All times are GMT +1. The time now is 02:08 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"