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: 33
Default Error, Excel 2000 & 2003

Hello,

My worksheet has 3 columns and 493 rows of data. For example

COL 2 COL3 COL4
Row1 0840600 2219 text
Row2 0840625 1345 text

I want COL2 - COL4 bold and interior color 15 (grey) if the number in
COL2 is between 0804600-0804663.

Why am I getting this this error "Method range of global object
failed"

at this line of code "Range("cell.Address(0, 0):cell.offset(,
2).Address(0, 0)").Font.Bold = True"?

Sub FindAddData3()
'
' Define Variables
Dim cell As Variant
' Set Variables
For Each cell In Range("B4:B494") 'Change Range Reference
'
If cell.Text = 804600 Or cell.Text <= 804663 Then
'
Range("cell.Address(0, 0):cell.offset(, 2).Address(0,
0)").Font.Bold = True
Range("cell.Address(0, 0):cell.offset(, 2).Address(0,
0)").Interior.ColorIndex = 15

Else
'Do NOTHING
End If
Next cell
End Sub

Thank you for your help,
jfcby

 
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
Object Required Error, Excel 2000 & 2003 jfcby[_2_] Excel Programming 3 July 31st 07 08:10 PM
Error Checking Code, Excel 2000 & 2003 jfcby[_2_] Excel Programming 3 December 23rd 06 09:15 PM
Code Error Message Excel 2000 - 2003 jfcby[_2_] Excel Programming 9 December 13th 06 04:41 AM
Error in Excel 2000, but not 2002 and 2003 Ctech[_132_] Excel Programming 1 April 3rd 06 12:44 PM
#VALUE! error: vlookup works in Excel 2000 but not 2003 Nick Ersdown Excel Discussion (Misc queries) 6 November 25th 05 12:23 PM


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