+ Reply to Thread
Results 1 to 2 of 2

Autofill:in a macro

  1. #1
    sisco98
    Guest

    Autofill:in a macro

    Hi all,

    I would like to use autofill in a macro, but the length of the range is
    changing every time when I open the workbook.
    The task would be that when I paste three column to range B:D, the macro
    should autofill column A with numbers from 1 to the number of the last row.
    For example, the last entry in column B is in row 67, autofill should fill
    column A with numbers from 1 to 67.

    Thank you in advance for!
    --
    sisco98

  2. #2
    Don Guillett
    Guest

    re: Autofill:in a macro

    incorportate this

    lr=cells(rows.count,"b").end(xlup).row

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "sisco98" <[email protected]> wrote in message
    news:[email protected]...
    > Hi all,
    >
    > I would like to use autofill in a macro, but the length of the range is
    > changing every time when I open the workbook.
    > The task would be that when I paste three column to range B:D, the macro
    > should autofill column A with numbers from 1 to the number of the last

    row.
    > For example, the last entry in column B is in row 67, autofill should fill
    > column A with numbers from 1 to 67.
    >
    > Thank you in advance for!
    > --
    > sisco98




+ 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