Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
raj raj is offline
external usenet poster
 
Posts: 32
Default Range selection in a sheet module

Hello, please help me if you can.

I am trying to make a simple range selection from inside a
worksheet module, for example:

Range(strRange).End(xlToLeft).Select

or even something as simple as:

ActiveSheet.Range("A5").Select

And I get "Select method of range class failed." error.
How can I correct this?

Your example code to fix mine would be greatly
appreciated. Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
raj raj is offline
external usenet poster
 
Posts: 32
Default Range selection in a sheet module

I'm sorry - please disregard this post. I discovered an
error in my code.

-----Original Message-----
Hello, please help me if you can.

I am trying to make a simple range selection from inside

a
worksheet module, for example:

Range(strRange).End(xlToLeft).Select

or even something as simple as:

ActiveSheet.Range("A5").Select

And I get "Select method of range class failed." error.
How can I correct this?

Your example code to fix mine would be greatly
appreciated. Thanks in advance.
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Range selection in a sheet module

I just did both of these without a problem
Sub selcel()
'ActiveSheet.Range("A5").Select
strRange = "$IV$1"
Range(strRange).End(xlToLeft).Select
End Sub

Try leaving xl and coming back or re-boot

--
Don Guillett
SalesAid Software

"raj" wrote in message
...
Hello, please help me if you can.

I am trying to make a simple range selection from inside a
worksheet module, for example:

Range(strRange).End(xlToLeft).Select

or even something as simple as:

ActiveSheet.Range("A5").Select

And I get "Select method of range class failed." error.
How can I correct this?

Your example code to fix mine would be greatly
appreciated. Thanks in advance.



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
Identifying a selection of a selection of a range swimfast Excel Worksheet Functions 1 March 1st 07 02:51 AM
HOW TO CARRY A VAIABLE RESULTS FROM EXCEL SHEET PROCEDURE TO A MODULE CAPTGNVR Excel Discussion (Misc queries) 5 February 2nd 07 07:05 PM
Drop Down Selection fires a module? John Excel Worksheet Functions 1 December 6th 04 09:17 PM
Variable from a sheet module in a class module in XL XP hglamy[_2_] Excel Programming 2 October 14th 03 05:48 PM
To print multiple selection and how to back VBA module pasword Kamran Khatri Excel Programming 5 September 8th 03 06:17 AM


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