Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 121
Default Method Range of Object Failed, Excel 2000 & 2003

Hello Each Responder,

Vergel Adriano, Jim Thomlinson, Jim Cone, and Tom Ogilvy:

Thank you for your help each response was helpful so that I was able
to use your ideas to get this macro code working:

Sub WorkSheetPageSetup()
'Setup WorkSheet PAGE for Zones
'1. Fill RowB with color Light Grey - value 001 ColumnB
'2. or Fill RowD with color Light Grey - value Left("BLDG")
ColumnD
Dim LastRow As Long
Dim i As Integer
Application.ScreenUpdating = False
For i = 5 To Worksheets.Count
Worksheets(i).Select
LastRow = Cells(Rows.Count, "A").End(xlUp).Row
For Each cell In Range("A4:A" & LastRow)
If cell.Offset(, 1).Text = "001" Or Left(cell.Offset(, 3).Text,
4) = "BLDG" Then
Range(cell, cell.Offset(, 6)).Interior.ColorIndex = 15
End If
Next cell
Next i
Worksheets(5).Select
Application.ScreenUpdating = True
End Sub

Thank you for yor help,
jfcby

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
Method Range of object '_Global' failed maverick2005 Excel Programming 3 August 25th 05 02:56 PM
What does XLS VB Method 'Range of object' _Global failed mean? DCMKGG Excel Programming 2 February 25th 05 03:06 PM
Method 'Range' of object '_Global' failed Brian Morris[_2_] Excel Programming 1 December 10th 03 11:04 PM
Excel 97 - Clear Method Of Range Object Failed Dave Peterson[_3_] Excel Programming 2 September 26th 03 01:56 AM
Method 'Range' of object '_Global' failed Mohanasundaram[_2_] Excel Programming 1 August 25th 03 01:43 PM


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