+ Reply to Thread
Results 1 to 2 of 2

Auto Fill Macro

Hybrid View

vijanand1279 Auto Fill Macro 01-07-2011, 04:57 AM
davesexcel Re: Auto Fill Macro 01-07-2011, 05:09 AM
  1. #1
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Auto Fill Macro

    Rows Col A Col B
    1 Name Department
    2 A 1
    3 B 1
    4 C 1
    5 D 1
    6 E 1

    Sub Macro2()
        Selection.AutoFill Destination:=Range("B2:B6")
        Range("B2:B6").Select
    End Sub
    I recorded the above macro to AUTO fill the values in B2 till the last available row in column A. But the next time I may get more or less rows in column A. Above macro keeps the range unchanged and I am looking for a macro that will dynamically change the range based on the rows in Column A. Please help

    Regards,
    Vijay
    Last edited by vijanand1279; 01-07-2011 at 06:46 AM. Reason: code tags required,please read the rules

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Auto Fill Macro

    Here are some threads on autofill
    http://www.excelforum.com/search.php?searchid=2773248

+ 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