+ Reply to Thread
Results 1 to 2 of 2

Make Macro dynamic when Rows are Added

  1. #1
    Registered User
    Join Date
    07-01-2019
    Location
    New Jersey
    MS-Off Ver
    2016
    Posts
    18

    Make Macro dynamic when Rows are Added

    Hello,

    I have a workbook with Marco1 that:

    Highlights J95:M103
    - Merges
    - Center
    - Adds Text "OK TO PAY"
    - etc...

    Macro 2
    - Undoes the whole thing (Unmerge, Unformat)

    ISSUE:
    When/If new line(s) are added/deleted above, the Marco does not change, and eventually moves and may overlap used cells.

    QUESTION:
    Hot to make J95:M103 to be dynamic. Perhaps based on a where a value is listed on that row?

    Thank you
    Rob
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Make Macro dynamic when Rows are Added

    Remove unnecessary code from the macro recording.
    probably this maybe sufficient.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by Vraag en antwoord; 07-15-2020 at 05:25 PM.

+ 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. VBA - How to make formulas dynamic when inserting new rows?
    By Jeoffrey3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2020, 10:00 AM
  2. [SOLVED] adjusting vba code to make it dynamic as rows data rows differ
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-26-2018, 10:37 PM
  3. [SOLVED] Macro not working when rows are added
    By gigi79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-24-2017, 12:30 PM
  4. Replies: 3
    Last Post: 02-17-2014, 09:20 PM
  5. [SOLVED] Need to Make Camera Tool Image Dynamic (Auto resize as data is added/deleted)
    By Steve N. in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-05-2012, 08:51 PM
  6. Replies: 1
    Last Post: 01-09-2011, 11:08 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