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: 5
Default Selecting a range after activating a worksheet

I have a file with 10 diffrent tabs. Depending on the option button chosen
on the first tab, certain columns need to be hiddein or revealed on a second
tab. I'm getting an 'application-defined or object-defined error' when it
tries to select a range on the newly activated worksheet. Can someone tell
me what I'm doing wrong?

If Opt1 = True Then
Range("SampleStrat").EntireRow.Hidden = False
Range("UnstratSample").EntireRow.Hidden = True
Worksheets("Sample Evaluation").Activate
Range("StratEval").Select (This is where it
errors out)
Selection.EntireColumn.Hidden = False
Range("UnstratEval").Select
Selection.EntireColumn.Hidden = True
Worksheets("Sample Calc").Activate
--
JP
 
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 I sort without activating / selecting sheet? Leo Elbertse Excel Programming 2 December 28th 03 06:08 PM
Selecting/Activating Control Tools Combobox on Sheet steve Excel Programming 5 October 10th 03 10:38 PM
Subscript our of range when activating a worksheet J.E. McGimpsey Excel Programming 0 October 7th 03 07:12 PM
Selecting or Activating a cell. Scott Excel Programming 0 August 15th 03 09:22 AM


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