Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Possible offset issue

Intermittently, I'm getting the "wrong" cell chosen when I use this code

r and myaRange reference a single cell. Once recently, myR was one column
to the right of where it should have been.

Set myR = r.Offset(0, myaRange.Column - r.Column)

I had to change the code to this so that it worked.
Set myR = r.Parent.Cells(r.Row, myaRange.Column)

Has anyone ever seen this before and if so, what's going on?

Thanks,

Barb Reinhardt

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
Cell offset issue MGarrison Excel Worksheet Functions 3 July 31st 08 03:52 PM
Offset issue Arturo Excel Programming 3 July 9th 07 07:27 PM
Find, Copy offset to offset on other sheet, Run-time 1004. Finny[_3_] Excel Programming 10 December 7th 06 11:46 PM
Offset issue Hinojosa via OfficeKB.com Excel Programming 2 October 17th 06 02:26 PM
Offset issue? BigWave@AC Excel Programming 4 August 3rd 06 05:51 PM


All times are GMT +1. The time now is 06:51 PM.

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"