Consulting

Results 1 to 3 of 3

Thread: Range Address Variables

  1. #1

    Range Address Variables

    Hello everyone,

    instead of write A, which is the column in a excel sheet in the
     Range("A" & i)
    expression ,is it possible to put a variable in the place of the "A" letter that identifies the column?

    Thanks.

  2. #2
    VBAX Contributor rollis13's Avatar
    Joined
    Jun 2013
    Location
    Cordenons
    Posts
    146
    Location
    Use instead:

    Cells(i, x)

    where x is the variable for the column (in numbers).

  3. #3
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,727
    Location
    Or letters. Either work with Cells().
    Be as you wish to seem

Posting Permissions

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