+ Reply to Thread
Results 1 to 4 of 4

UPDATED: Added File New Row Macro Autoupdate Line...

  1. #1
    Registered User
    Join Date
    07-19-2019
    Location
    Colorado Springs, Colorado
    MS-Off Ver
    Excel 2016
    Posts
    6

    UPDATED: Added File New Row Macro Autoupdate Line...

    OK, I've looked for solutions to this issue, but I'm not sure I'm using the right search criteria. Here's the gist:

    So I have a meeting tracking document that I want to use, the problem I'm having is I've created a new row button to automate inserting new rows however, if I click the new row button in line 13 it breaks the new row buttons in lines 15 and 17 because the macro no longer points to the correct line. I'm sure there's a way to do this, I just need one of you smart folks to point me in the right direction.

    The code I'm using is below and the file is attached. Any help would be GREATLY appreciated.



    Sub NewRowSummary_Click()

    Sheets("Template").Range("A20").Select
    ActiveCell.EntireRow.Insert Shift:=xlDown

    Sheets("Template").Range("A20:D20").Select
    Selection.Borders.Weight = xlThin

    Sheets("Template").Range("A20:D20").Merge

    End Sub
    Attached Files Attached Files
    Last edited by Pgm_Mgr; 07-19-2019 at 03:47 PM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: New Row Macro Autoupdate Line...

    It would be easier to help if you could attach a copy of your file. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    07-19-2019
    Location
    Colorado Springs, Colorado
    MS-Off Ver
    Excel 2016
    Posts
    6

    Re: New Row Macro Autoupdate Line...

    Thanks for the tip... should have thought about that. Thanks for the insight.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: UPDATED: Added File New Row Macro Autoupdate Line...

    Try the attached file. The macro is in Module1. Please note that I had to unmerge the cells in rows 13, 15 and 17. You should avoid using merged cells because they create havoc for macros. I have formatted the cells using "CenterAcrossSelection" which has the same visual effect as merging without actually merging the cells. The text appears in the center but is actually in column A. When entering data in the new rows, simply click in column A and enter your data.
    Attached Files Attached Files
    Last edited by Mumps1; 07-20-2019 at 10:30 AM.

+ 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. macro to autoupdate links
    By MOUNIR75 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-15-2017, 08:34 AM
  2. [SOLVED] VBA AutoUpdate?
    By drgkt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2017, 06:55 PM
  3. Macro to autoupdate master sheet when job number is input
    By CodeMonkey2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2009, 03:42 PM
  4. Autoupdate Chart
    By Dylan&Hayden in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-03-2009, 09:34 PM
  5. Autoupdate?
    By powerwindow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2009, 06:50 PM
  6. AutoUpdate Links
    By Cherokee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2006, 08:03 AM
  7. [SOLVED] Macro problem on, Yellowed line - previous line or next line.
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-29-2005, 07:06 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