Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't get VBA to work without select | Excel Discussion (Misc queries) | |||
Cells.Select won't work!!! | Excel Programming | |||
Why doesn't Selection.End(xlDown).Select always work? | Excel Programming | |||
Why doesn't Selection.End(xlDown).Select always work? | Excel Programming | |||
xldown and xlright | Excel Programming |