Range("C100:D200").Select with variable names

  • Thread starter Thread starter Fan924
  • Start date Start date
F

Fan924

Excel 97. I want to replace this with a variable names.

Range("C100:D200").Select
Start=100
Stop=200

How do I word this to select C100 thru D200?
 
Sub stitute()
startt = 100
stopp = 200
Range("C" & startt & ":D" & stopp).Select
End Sub
 
You can't use Stop for a variable name in VB, so I changed it to Finish...

Start = 100
Finish = 200
Range("C" & Start & ":D" & Finish).Select

Rick
 

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