Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 186
Default What has changed?

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*
  #2   Report Post  
Posted to microsoft.public.excel.programming
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*



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default What has changed?

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

There is no object in Excel named "Cell". Use "Range" instead.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"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*



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 186
Default What has changed?

Thanks guys, never thought of applying a single cell range as a pointer to an
individual cell ie (a1:a1) was too busy looking for reasons why something
that worked in a previous incarnation failed!

"Chip Pearson" wrote:

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


There is no object in Excel named "Cell". Use "Range" instead.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"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*




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default What has changed?

I fail to see how it could have worked in a previous incarnation, cell is
not a object data type.

--

HTH

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


"Jack" wrote in message
...
Thanks guys, never thought of applying a single cell range as a pointer to

an
individual cell ie (a1:a1) was too busy looking for reasons why something
that worked in a previous incarnation failed!

"Chip Pearson" wrote:

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


There is no object in Excel named "Cell". Use "Range" instead.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"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*






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlinks being changed Gary1972 Excel Discussion (Misc queries) 0 September 10th 09 05:17 PM
Hyperlink changed??? RD Excel Worksheet Functions 3 February 9th 09 02:27 PM
Format changed when the details in cell changed angel Excel Worksheet Functions 9 July 15th 08 12:36 AM
Changed Links Mark K Links and Linking in Excel 1 May 12th 05 12:37 AM
Code - if T changed, change date in W to date it is changed Sandy[_3_] Excel Programming 2 July 27th 03 05:33 PM


All times are GMT +1. The time now is 01:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"