Referencing specific cell

S

Sean

What is the code used to reference a specific cell from
another office application?

For example, I have a project plan in MSFT Project and I
want my code to read the value of cell B1 in an excel
worksheet and then import this value into MSFT project...

this is a very simple, single sheet, excel file...

any help would be greatly appreciated...
 
T

Tom Ogilvy

Dim oxlApp as Object
set oxlApp.CreateObject("Excel.Application")
.. . .
vVal = oxlApp.Workbooks("Myworkbook.xls").Worksheets(1).Range(B1").Value
 
Top