Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select method of range class failed | Excel Programming | |||
What did I do? (Select Method of Range Class Failed ) | Excel Programming | |||
Select method of Range class failed - but why??? | Excel Programming | |||
select method of range class failed | Excel Programming | |||
select method of range class failed | Excel Programming |