Selecting a variable Range

  • Thread starter Thread starter Brett
  • Start date Start date
B

Brett

Hi everyone,

I am having issues selecting a variable range. This is basic but I am
not a heavy user of VBA.

p = Range("startdate").Value
q = Range("enddate").Value


Sheets("Data-Sales w Macro").Select
Range("G29").Offset(0, p).Select

I am attempting to select the range between and including P and Q. P
and Q are drop down boxes. The code above selects the cell from
startdate, but my problem is the rest. Sorry for the easy question.
I appreciate your answers.
 
Maybe????

p = Range("startdate").Value
q = Range("enddate").Value

Sheets("Data-Sales w Macro").Select
range(Range("G29").Offset(0, p),range("g29").offset(0,q)).select
 

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