+ Reply to Thread
Results 1 to 4 of 4

Insert new row using a Command Button and keep formulas

  1. #1
    Registered User
    Join Date
    01-18-2016
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    1

    Insert new row using a Command Button and keep formulas

    Hi all, I've created a command button to auto insert a new row but I want it to keep t keep the formulas and for one of the rows keep the drop down options.

    This is the code I am using, could someone help me out with letting me know the code for also keeping the formulas?

    Please Login or Register  to view this content.
    Last edited by alansidman; 01-19-2016 at 01:20 AM.

  2. #2
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: Insert new row using a Command Button and keep formulas

    Can you send through an example of exactly what you want?

    If you want to copy the formula's from what was originally row 3 you can use something like this after what you have currently

    Please Login or Register  to view this content.
    Last edited by alansidman; 01-19-2016 at 01:21 AM.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,897

    Re: Insert new row using a Command Button and keep formulas

    luckylulu and spitfireblue


    Code Tags Added
    Your posts do not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: Insert new row using a Command Button and keep formulas

    Quote Originally Posted by alansidman View Post
    Highlight your code and click the # icon at the top of your post window.
    How do I do this from a phone?

+ 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. Insert Command Button that will Activate Command Button on a Different Sheet
    By realvirtuality1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2016, 02:11 PM
  2. Insert rows (and copy formulas) using command button
    By roseme in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-06-2014, 01:42 PM
  3. Replies: 30
    Last Post: 11-06-2013, 12:43 PM
  4. Command Button using VBA, to insert a row with formulas below
    By AlexKost in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2013, 11:50 PM
  5. insert a command button
    By lee_har in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-31-2009, 04:25 AM
  6. Command Button - Insert Lines
    By TjBoiler in forum Excel General
    Replies: 6
    Last Post: 01-29-2007, 10:11 PM
  7. I can't insert a Command Button into my spreadsheet
    By Stephen238 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2005, 04:05 PM

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