Results 1 to 13 of 13

Macro problem - auto fill to last active cell

Threaded View

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    19

    Question Macro problem - auto fill to last active cell

    Hello I am relatively new to your forum and was wondering if anyone out there could help me

    I have included my macro below and it is part of a much bigger macro, however at the moment due to the part of code:

    Selection.AutoFill Destination:=Range("A2:B1897")
    &
    Selection.AutoFill Destination:=Range("J2:J1897")

    It seems to not work correctly and if the input report I have is less than the 1897 lines it returns a #n/a.

    What I would like to do within this same macro is only do the steps to the last active cell in the sheet e.g. it would mean that any input report of any size would work and no errors returned.

    Can anyone help me out on this one

    Thanks

    CL
    Last edited by CraigieL; 10-18-2012 at 04:41 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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