Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default .End(xlRight)).Select Doesn't Work

When I use Range("A5", Range("A5").End(xlRight)).Select, I get an error
"Application-defined or object-defined error". Substituting xlUp or xlDown
works correctly.

Any suggestions?
--
TIAFYH
mcr
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default .End(xlRight)).Select Doesn't Work

I think it need to be:

Range(Range("A5"), Range("A5").End(xlRight)).Select

Regards

Trevor


"Madcatrobert" wrote in message
...
When I use Range("A5", Range("A5").End(xlRight)).Select, I get an error
"Application-defined or object-defined error". Substituting xlUp or xlDown
works correctly.

Any suggestions?
--
TIAFYH
mcr



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default .End(xlRight)).Select Doesn't Work

It needs to be xlToRight

?xlright
-4152
?xltoright
-4161


--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com

Madcatrobert wrote:
When I use Range("A5", Range("A5").End(xlRight)).Select, I get an
error "Application-defined or object-defined error". Substituting
xlUp or xlDown works correctly.

Any suggestions?



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
Can't get VBA to work without select D. Excel Discussion (Misc queries) 6 February 5th 08 12:30 PM
Cells.Select won't work!!! Harald Staff Excel Programming 0 November 24th 04 08:38 AM
Why doesn't Selection.End(xlDown).Select always work? Tom Ogilvy Excel Programming 0 August 3rd 04 05:52 PM
Why doesn't Selection.End(xlDown).Select always work? Don Guillett[_4_] Excel Programming 0 August 3rd 04 05:47 PM
xldown and xlright He4Giv Excel Programming 2 January 29th 04 12:41 AM


All times are GMT +1. The time now is 09:29 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"