Hi, I have a problem which is really starting to bug me!!
I cannot get a VB MsgBox to display the value of a cell in a different (Closed) workbook.
To test yourself (really appreciate if you could try this):
Make a new workbook on your C Drive C:\JohnCassell1.xls
Then make another one C:\JohnCassell2.xls
In Cell A1 of the JohnCassell2 workbook enter 99.
Then in cell A1 of JohnCassell1 type "=" then click on cell A1 of the other workbook.
Close that workbook.
The formula looks like this: ='C:\[JohnCassell2.xls]Sheet1'!$A$1
and shows a value of 99. So at least I can get a formula to show the value ok!
Then in VB Editor try and make a MsgBox which shows the value of the cell in the closed workbook. This is my attempt...
MsgBox C:\[JohnCassell2.xls]Sheet1'!$A$1.value
This is what I cannot do.
Just comes back with errors.
Any help at all would be really appreciated.
John
Bookmarks