View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default What has changed?

Cell is not anj object, and you should properly qualify it perhaps

Dim objXL As Excel.Application
Dim wkbXLBook As Excel.Workbook
Dim wksSheet As Excel.Worksheet
Dim ExcelWasNotRunning As Boolean .
Dim r As Excel.Range

Dim cl As Excel.Range
--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jack" wrote in message
...
I am using the excell 10 lib from MS Access to reference excel worksheets.
My code, which worked in previous incarnations, now falls over! The lib no
longer recognises CELL or CELLS, any clues?

Dim objXL As Object ' Variable to hold reference to Microsoft Excel.
Dim wkbXLBook As Excel.Workbook
Dim wksSheet As Excel.Worksheet
Dim ExcelWasNotRunning As Boolean ' Flag for final release.
Dim r As Excel.Range

Dim cl As Cell *This no longer compiles / works*