+ Reply to Thread
Results 1 to 4 of 4

Autofill columns code - Macro recording preserves the row, not the intent

  1. #1
    Registered User
    Join Date
    04-13-2019
    Location
    London, England
    MS-Off Ver
    365
    Posts
    5

    Autofill columns code - Macro recording preserves the row, not the intent

    Hi

    I have a problem that is probably very simple for some people but one that I have repeatedly. Can't find a solution online, not sure I'm using the right terminology.

    The double click to autofill a column down to the lowest row that has content in adjacent cells goes down to the number row that was recorded, not the number row of the content in new sheet. What's the change necessary to make it autofill to the number row in the new sheet?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Autofill columns code - Macro recording preserves the row, not the intent

    Hard to revise the code when we don't know what you recorded.

    Post a sample file. See the yellow banner.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    04-13-2019
    Location
    London, England
    MS-Off Ver
    365
    Posts
    5

    Re: Autofill columns code - Macro recording preserves the row, not the intent

    Sorry for missing that yellow box.

    As you can see, on both the list too long and the list too short lookups went to row 444, not rows 558 and 333 as hoped.

    Thanks.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-13-2019
    Location
    London, England
    MS-Off Ver
    365
    Posts
    5

    Re: Autofill columns code - Macro recording preserves the row, not the intent

    Can anybody help with this?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Recording Macro that deletes remaining columns
    By shawnnai in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-08-2015, 06:18 PM
  2. Unable to edit macro recording code to be a relative code.
    By holaitsme in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2014, 10:51 AM
  3. Recording Macro is deleting all columns instead of just one
    By Elizabethd1012 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-19-2014, 02:11 PM
  4. [SOLVED] VBA copy code that preserves formatting in the destination cell
    By wylie27 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2012, 10:30 PM
  5. [SOLVED] Instances where macro recording cannot be used to generate code
    By SynGC in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2012, 04:55 AM
  6. Cleaning up the code after recording a macro.
    By AnthonyWB in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-01-2010, 02:30 PM
  7. Simplify VBA code for autofilter from Macro recording
    By miners in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-27-2009, 09:58 PM

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