I want to read the value of two cells from an Excel speadsheet(s) and stuff
them in to variables. Can anyone assist me or point me in the right
direction?
Lets assume...
Cells to read: A1 and C1
Variables: CellA1, CellC1
Thanks in advance,
RM
Dim objXL, CellA1, CellC1
Set objXL = GetObject("C:\Windows\Desktop\test.xls")
CellA1 = objXL.sheets("sheet1").cells(1,1)
CellC1 = objXL.sheets("sheet1").cells(1,3)
Set objXL = Nothing
Note the cell references take the row number first and the column number
second.
Steve
"RM" <vich...@sdf.lonestar.org> wrote in message
news:eTA2PXe6AHA.2028@tkmsftngp07...
Steve
"SteveYandl" <steve...@email.msn.com> wrote in message
news:OkXULre6AHA.1756@tkmsftngp07...