+ Reply to Thread
Results 1 to 4 of 4

Offset

  1. #1
    Forum Contributor
    Join Date
    06-15-2004
    Posts
    246

    Offset

    In VB in have cell references to the column and row numbers

    example

    column = 35

    Row = 6

    I would like to do a offset type function to select the cell and then the next 10 columns along.

    The result would be AI6:AS6

    From here im planning to copy this range and post it somewhere else.

    The column references are likley to change alot which is why i cant just use AI6:AS6


    Please can someone help?

  2. #2
    bpeltzer
    Guest

    RE: Offset

    Range(Selection, Selection.Offset(0,11)).Select


    "ceemo" wrote:

    >
    > In VB in have cell references to the column and row numbers
    >
    > example
    >
    > column = 35
    >
    > Row = 6
    >
    > I would like to do a offset type function to select the cell and then
    > the next 10 columns along.
    >
    > The result would be AI6:AS6
    >
    > From here im planning to copy this range and post it somewhere else.
    >
    > The column references are likley to change alot which is why i cant
    > just use AI6:AS6
    >
    >
    > Please can someone help?
    >
    >
    > --
    > ceemo
    > ------------------------------------------------------------------------
    > ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
    > View this thread: http://www.excelforum.com/showthread...hreadid=498738
    >
    >


  3. #3
    Ron de Bruin
    Guest

    Re: Offset

    Use this

    Sub test()
    Dim Columnnum As Integer
    Dim Rownum As Long
    Columnnum = 35
    Rownum = 6
    Cells(Rownum, Columnnum).Resize(1, 10).Select
    End Sub


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "ceemo" <[email protected]> wrote in message
    news:[email protected]...
    >
    > In VB in have cell references to the column and row numbers
    >
    > example
    >
    > column = 35
    >
    > Row = 6
    >
    > I would like to do a offset type function to select the cell and then
    > the next 10 columns along.
    >
    > The result would be AI6:AS6
    >
    > From here im planning to copy this range and post it somewhere else.
    >
    > The column references are likley to change alot which is why i cant
    > just use AI6:AS6
    >
    >
    > Please can someone help?
    >
    >
    > --
    > ceemo
    > ------------------------------------------------------------------------
    > ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
    > View this thread: http://www.excelforum.com/showthread...hreadid=498738
    >




  4. #4
    Forum Contributor
    Join Date
    06-15-2004
    Posts
    246

    thanks

    perfect thank you very much

+ 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