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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wirint code in vba

Status
Not open for further replies.

turtlejack

Technical User
Jan 25, 2005
26
US
Sub ResizeRng()
x =(g20)
Selection.resize(7, x).Select
End Sub

I want to resize a range using the value from cell g20.This value will not always be the same, so, i want to use a variable, to identify/refer/call,,,etc. this cell..
please help
 
Have tried to replace this:
x =(g20)
By this:
x =[G20]

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
havent tried it yet.. I sure will though.. hope it works. I have a feeling it just needs a little push to make it do what I want..Thanks in advance
 
just to close this out, thanks for the help, this code works great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top