+ Reply to Thread
Results 1 to 2 of 2

Assign vaiable to a cell - gold

  1. #1
    gold gold via OfficeKB.com
    Guest

    Assign vaiable to a cell - gold

    HI,,, im just wondering how will I assign a variable to a cell that will b
    used in a Range....

    Here's the situation:

    Range("a:b").Select

    where a and b are variables assigned as integer

    Please please please ....

    i need this urgent....

    thank you

  2. #2
    Dave Peterson
    Guest

    Re: Assign vaiable to a cell - gold

    dim a as long
    dim b as long
    a = 3
    b = 18
    range(a & ":" & b).select

    This will select rows 3:18.

    range(rows(a),rows(b)).select

    will do the same.

    If you're working with rows, you'll want to use Longs instead of integers.

    "gold gold via OfficeKB.com" wrote:
    >
    > HI,,, im just wondering how will I assign a variable to a cell that will b
    > used in a Range....
    >
    > Here's the situation:
    >
    > Range("a:b").Select
    >
    > where a and b are variables assigned as integer
    >
    > Please please please ....
    >
    > i need this urgent....
    >
    > thank you


    --

    Dave Peterson

+ 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