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: 1
Default Select Method of Range class failed


Hi all this is my first time post.
I dabble in some relativly big VBA subs but I am not a programmer. This
has me stumped.
Normally I avoid buttons on spreadsheets I run my macros from toolbar
buttons not sheet buttons. I dont know if it is relevent but it always
seems the small details matter. For this macro I am initiating it from
a sheet button.
In the button code I select a different sheet then select B3, xlright,
xldown I then move into a for each cell in selection. I am getting the
error after the sheet selection, on the line:

Range("B3").Select

Full code:
___________________________________
Private Sub SelectAreas_Click()
ScreenUpdating = False

If Sheets("Benchmarks").Visible = False Then
Sheets("Benchmarks").Visible = True
End If
Sheets("Benchmarks").Select
*_Range(\"B3\").Select_*
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).SelectRange("B3").Select
For Each Cell In Selection
If Cell.Offset(0, 11).Value = "None" Then
Cell.Offset(0, 10).Value = "No"
End If
Next
Range("B2:M245").Select
Selection.autofilter
Selection.autofilter Field:=11, Criteria1:="Yes"
ScreenUpdating = True
End Sub


--
dircur
------------------------------------------------------------------------
dircur's Profile: http://www.excelforum.com/member.php...o&userid=31393
View this thread: http://www.excelforum.com/showthread...hreadid=510910

 
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
Select method of range class failed sa02000[_4_] Excel Programming 1 October 5th 05 01:20 PM
What did I do? (Select Method of Range Class Failed ) HotRod Excel Programming 9 May 20th 05 02:11 PM
Select method of Range class failed - but why??? Orion[_2_] Excel Programming 3 December 21st 04 03:28 PM
select method of range class failed Joseph[_38_] Excel Programming 1 September 28th 04 03:21 PM
select method of range class failed Joseph[_39_] Excel Programming 0 September 28th 04 02:32 PM


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