Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

runtime error 9 out of range 1

Status
Not open for further replies.

butchkmd

Programmer
Nov 13, 2001
83
US
I used this line in my code
Worksheets("worksheet6(R S Cont.(2))")!Range!(T33:AI33").Value = ""

and I get the error "out of range"

the cell range is there on ws6 I don't get it any suggestions?

Thanks
Matt

 
Hey butch,

Two problems...
1. Need QUOTES around your range
2. No !
Worksheets(1).Range("T33:AI33").Value = "" Skip,
metzgsk@voughtaircraft.com
 
Hi

Try changing to this;


Worksheets("worksheet6(R S Cont.(2))").Range("T33:AI33").Value = ""


Hope this helps.

rgds
LSTAN
 
I changed it to this
Sheet6!Range("T33:AH33").Value = ""
I get an error that the object does not support this property or method.

AAAAAHHHHHHHHHHHHHHH!!!!!!!!!!!!!![MAD]


All I need to do is clear the range and replace the text
The replace works using .value = what do I use to clear it?


I'm really starting to not like Excel

But I do like you guys!

 
READ MY LIPS....

No "!"

NOT...
Sheet6!Range("T33:AH33").Value = ""

BUT...
Sheet6.Range("T33:AH33").Value = "" Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top