Resize query

G

Graham

Very basic but I cannot get this work work and do not understand why.I
would appreciate any help

Graham

Dim myrange As Range

Set myrange = Range("AF1").CurrentRegion


myrange.Resize(7, 0).Select

I keep getting an application defined or object defined error.
 
J

Jim Cone

Try...
myrange.Resize(7).Select
--
Jim Cone
Portland, Oregon USA
custom sorting... http://www.contextures.com/excel-sort-addin.html




"Graham" <[email protected]>
wrote in message Very basic but I cannot get this work work and do not understand why.I
would appreciate any help
Graham

Dim myrange As Range
Set myrange = Range("AF1").CurrentRegion

myrange.Resize(7, 0).Select

I keep getting an application defined or object defined error.
 
G

Graham

Oh dear, a lot of humble pie I think! Many thanks for patience and quick
reponse.

Graham
 
F

FSt1

hi
it is not possible to have a range 0 columns wide.
change to.......

myrange.Resize(7, 1).Select

also not possible to have a range 0 rows high.

Regards
FSt1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top