setting up input box, and column row calls

S

SteveDB1

Hello all.
I have made an auto fill macro that I have multiple cell inputs.
It's essentially a 3 row, 6 column set.
I've made two input boxes.
the first is for the row placement, and the second is for the column
placement.
I would like to use this for the input of each cell's data.
My attempt however has not worked. It gets hung up with what I'm thinking is
the way I've stated the range values to start.

Dim Nu as integer
Nu = inputbox (prompt,title) 'row
Dim Nu1 as integer
Nu1 = inputbox(prompt, title) 'column
Range("Nu & Nu1:(Nu & Nu1)+6 & Nu1").Select

While I'm certain that I did this wrong, I'm unable to identify the way I
should state it. Any ideas on how this should be stated?
Thank you.
 
P

Per Jessen

Hello

I think it's this what you is looking for:

Range(Cells(Nu, Nu1), Cells(Nu + 6, Nu1)).Select

Regards,
Per
 

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