Results 1 to 4 of 4

Macro Autofill to last row - how?

Threaded View

scanary Macro Autofill to last row -... 01-31-2005, 02:22 AM
mangesh_yadav Use the following instead of... 01-31-2005, 03:04 AM
hfernandez Re: Macro Autofill to last... 04-19-2018, 04:05 PM
alansidman Re: Macro Autofill to last... 04-19-2018, 04:09 PM
  1. #1
    Registered User
    Join Date
    01-31-2005
    Posts
    1

    Macro Autofill to last row - how?

    Hi there

    I know little about writing VBA code, and this is probably a no-brainer to you gurus out there, so please be gentle.

    I have formulas in column C, D & E that I want to autofill down in a macro to the last row in column B. The number of rows in column B may vary every time I complete this sheet.

    I have turned the "relative reference" button on while creating the macro, but I see in the VBA code that the cell number still appears ie. "A1:C66". How do I make it go to the bottom of column B despite how many rows there are?

    This is what is appearing in the code:
    Range("C2:E2").Select
    Selection.AutoFill Destination:=ActiveCell.Range("A1:C66")
    ActiveCell.Range("A1:C66").Select

    Many many thanks
    Lisa
    Last edited by alansidman; 04-19-2018 at 04:08 PM.

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