Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Newbie vba - How do I reference cells in another workbook
Data is transferred from another program and each transfer opens a new
workbook in Excel. I have a workbook (Main) that processes the data. I have the workbook name in cell B4 say Book5 and part of the macro looks like this Dim wbook Range("b4").Select wbook = ActiveCell.Offset(0, 0).Value Workbooks(wbook).Activate 'Processes some data Workbooks("Main").Activate Range("a7").Select ActiveCell.Offset(1, 1).Value = "=max([book5]sheet1!$b:$b)" My question is how do I write the last line using the variable wbook instead of the workbook name book5 Thanks Ian |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help with Newbie question - Cell Reference | New Users to Excel | |||
Can references to cells be used as part of a workbook reference | Excel Discussion (Misc queries) | |||
Newbie Cell Reference Question... | New Users to Excel | |||
Newbie help with cell reference | Excel Programming | |||
Newbie question on cell reference 2 | Excel Programming |