+ Reply to Thread
Results 1 to 2 of 2

How to use variables for Range( ) ?

  1. #1
    serdar
    Guest

    How to use variables for Range( ) ?

    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.



  2. #2
    serdar
    Guest

    Re: How to use variables for Range( ) ?

    Sorry for bothering you, i guess this is the answer:

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


    "serdar" <[email protected]>, haber iletisinde şunları
    yazdı:#[email protected]...
    > 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.
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1