How to use variables for Range( ) ?

  • Thread starter Thread starter serdar
  • Start date Start date
S

serdar

Lets say my starting and ending coordinate variables are (x1,y1) and
(x2,y2).


I want to define a Range from (x1,y1) to (x2,y2). Range( ) accepts string
datatype so i cannot use variables in Range( ). I cannot use Cells ( ) cos
it defines a single cell only.
 
Sorry for bothering you, i guess this is the answer:

Range(Cells(x1, y1), Cells(x2, y2))
 

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

Similar Threads


Back
Top