LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Range object lacks Value property

I've been fighting an intermittent problem in VBA code. I pass in a Range r
and want to look through a particular column of that range.

Dim c as Range

for each c in r.columns(col)
if c.value = target then
endif
next c

Usually this works fine. However, in certain as-yet-mysterious
circumstances, instead of c getting Range values consisting of single cells
from the column, c.Address( ) is the same as r.Address( ), and even more
perplexing to me, c.value give a Type Mismatch error, and when I put c in a
watch window, there is no Value property (although there is always a Value2
property). What is going on? How can I go about debugging this?

Thnx for any help.

Raymond Langsford


 
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
range property of range object Woody[_3_] Excel Programming 1 June 23rd 05 09:04 PM
How to use Cells property to Range object? deko[_2_] Excel Programming 4 March 8th 05 07:17 PM
Using The Value property of the ActiveCell object Almamba Excel Programming 3 February 21st 05 06:38 PM
How to check if an object has a certain property? J Excel Programming 1 December 5th 04 11:58 AM
Page Object property Matt[_18_] Excel Programming 1 October 2nd 03 01:43 PM


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

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"