LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default cell reference in another workbook

if i have workbook1 open can i reference a cell value in
a different workbook that is closed (workbook2).

so if i had:

Private Sub CommandButton1_Click()
workbook1.sheets("Sheet1").range("A1").value = _
workbook2.sheets("sheet1").range("Q98").value
End Sub
would something like this work?
i am not sure on the syntax of referencing a different
workbook.

i am actually tring to import a range of workbook2 into
workbook1. or more specifically copy a range from 1
into 2. TIA...S
 
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
can't click on cell to reference to another workbook reallytryingtogetworkdone Excel Worksheet Functions 1 January 7th 08 09:44 PM
workbook/cell reference w/ formula waladd Excel Worksheet Functions 4 February 17th 07 03:16 PM
How to reference a cell in a different workbook using a drop down Mr. C Excel Discussion (Misc queries) 0 January 15th 07 05:31 AM
Use the value of a cell within a reference to another workbook? MR Excel Worksheet Functions 1 August 1st 06 05:41 PM
cell reference in another workbook Corben Excel Discussion (Misc queries) 3 April 29th 06 10:03 AM


All times are GMT +1. The time now is 07:32 AM.

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

About Us

"It's about Microsoft Excel"