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: 114
Default Macro Problem

Hi All
I have a problem with the following macro -- I do not want it to run after
it gets to sheet 25 - Sheet 26 ad infinitum may have different names in the
workbook -- is it possible for this to be done?? If so can anyone guide me in
the right direction.


Sub Macro6()

For Each ws In Worksheets
If ws.Name < "Club Account" And ws.Name < "Result" And ws.Name <
"LONGDENDALE" And ws.Name < "Account" And ws.Name < "Sheet1" And ws.Name <
"Expenses" Then


With ws



..Range("F3:F52").Copy .Range("H3")
..Columns("H:H").Insert Shift:=xlToRight
..Range("F3:F52").ClearContents
..Columns("H:IV").Columns.ColumnWidth = 15

'Sheets("Account").Range("A2:C26").ClearContents
'Application.Goto Sheets("M.Hall").Range("F3")

Dim cell As Range


..Range("I3:I53").Interior.ColorIndex = xlNone
For Each c In .Range("I3:I53")
If IsNumeric(c) And c.Value 5 Then c.Interior.Color = RGB(0, 255, 0)
Next c

End With
End If
Next ws

End Sub

--
Many thanks

hazel
 
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
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Worksheet Functions 1 May 3rd 08 02:35 PM
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Discussion (Misc queries) 1 May 3rd 08 10:52 AM
problem with macro gls858 New Users to Excel 0 March 13th 08 06:42 PM
Color Row Macro Problem, adapted from Patrick Malloy macro SteveC Excel Programming 4 June 21st 06 12:28 PM
Problem in updating all worksheets of a workbook using a macro that calls another macro [email protected] Excel Programming 3 March 20th 06 05:21 AM


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