name selection

  • Thread starter Thread starter my.wandering.mind
  • Start date Start date
M

my.wandering.mind

Hi All,

I have a table which has one blank row between row 1 and row 3 and
then there are several rows of data. How Can I name this range in vba

I cannot delete the blank row

Any suggestions?

thanks
vishnu
 
assumes excel 2003<

Set myrange1 = Rows(1)
Set myrange2 = Range(Cells(3, 1), Cells(7, 256))
Set myrange = Union(myrange1, myrange2)

Mike
 

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

Back
Top