Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.vb.general.discussion,microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default Error retrieving value of the specified Excel cell (Not active)

I am trying to retieve content of specified (row, column) cell.

Set oExcel = GetObject(, "Excel.Application") ' get existing Excel Object

oExcel.Cells(11, 17).Value

The above code works fine in Immediate window but in run time creates error:
'438': Object doesn't support this property or method"

How to retrieve value of the specified cell (Not active) ?


  #2   Report Post  
Posted to microsoft.public.vb.general.discussion,microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Error retrieving value of the specified Excel cell (Not active)

try

oExcel.ActiveWorkbook.ActiveSheet.Cells(11, 7).Value


--
At least one sentence in this post is wrong, but it could be this one
(paraphrased).
"Jack" <replyto@newsgroup wrote in message
...
I am trying to retieve content of specified (row, column) cell.

Set oExcel = GetObject(, "Excel.Application") ' get existing Excel Object

oExcel.Cells(11, 17).Value

The above code works fine in Immediate window but in run time creates

error:
'438': Object doesn't support this property or method"

How to retrieve value of the specified cell (Not active) ?




  #3   Report Post  
Posted to microsoft.public.vb.general.discussion,microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Error retrieving value of the specified Excel cell (Not active)

Is oExcel.Cells(11,17).Value the whole line or is it something like:

CellValue = oExcel.Cells(11,17).Value

If what you typed is the whole line in your program, then I think that is
your problem, you need to assign the value to something.

Sue

"Jack" <replyto@newsgroup wrote in message
...
I am trying to retieve content of specified (row, column) cell.

Set oExcel = GetObject(, "Excel.Application") ' get existing Excel Object

oExcel.Cells(11, 17).Value

The above code works fine in Immediate window but in run time creates

error:
'438': Object doesn't support this property or method"

How to retrieve value of the specified cell (Not active) ?




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
How do I get the coordinates of the active cell in Excel? Jim Stuart Excel Discussion (Misc queries) 9 April 3rd 23 01:25 PM
Row select mode to highlight active row of active cell Bart Fay[_2_] Excel Discussion (Misc queries) 0 May 11th 10 09:34 PM
referring to formula in a non active cell from active cell nickname Excel Discussion (Misc queries) 1 June 21st 07 12:11 PM
How do I shade the active cell in excel RogerK Excel Worksheet Functions 1 July 11th 06 04:03 PM
Active X Error message RENEE Excel Discussion (Misc queries) 0 March 13th 06 07:30 PM


All times are GMT +1. The time now is 01:53 PM.

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

About Us

"It's about Microsoft Excel"