+ Reply to Thread
Results 1 to 6 of 6

Command button to add a new row in G14 with these formulas?

  1. #1
    Forum Contributor
    Join Date
    07-09-2018
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    257

    Command button to add a new row in G14 with these formulas?

    I need a command button to add a new row in G14 with this formula in L14 ' =IFERROR(SUBSTITUTE(LEFT(J14;FIND(" ";J14));"pág";"")+0;"") ' and this formula in M14 ' =IF(J14="";"";K14/LEFT(J14;FIND("pág";J14)-1)+0) ?
    Last edited by Mr.Castle; 11-05-2018 at 07:29 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Command button to add a new row in G14 with these formulas?

    Hi Mr. Castle,

    Turn on the macro recorder as you initiate your steps described above and then attach to a command button.
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    07-09-2018
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    257

    Re: Command button to add a new row in G14 with these formulas?

    Hi , i recorded the macro, now how to attach to the command button?

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Command button to add a new row in G14 with these formulas?

    On your worksheet, select on the ribbon, Developer tab, insert, forms control button.

    https://www.youtube.com/watch?v=eLWRqGGdGEQ

    Click on the Button (form control) and then place on the worksheet.

    After you drop the command button on the worksheet you will be prompt to assign the macro.

    Also, if you post your macro here (with code tags), we can show you how it can be cleaned up.

    When using the macro recorder, the recorder records steps which are not necessary.

    Beyond the macro recorder
    Last edited by jeffreybrown; 11-05-2018 at 08:26 PM.

  5. #5
    Forum Contributor
    Join Date
    07-09-2018
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    257

    Re: Command button to add a new row in G14 with these formulas?

    It worked,

    Thank you Jeff

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Command button to add a new row in G14 with these formulas?

    Bitte Mr. Castle. Happy to help and thanks for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Adding a command button for :REVIEW
    By Robert Conklin in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-27-2020, 12:49 AM
  2. Adding a vlookup into VBA command button ?
    By radgrad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2014, 11:55 AM
  3. [SOLVED] Adding a command button to the menu
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-13-2012, 01:29 AM
  4. Need help with adding Command button
    By lynhall in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-20-2008, 03:03 PM
  5. Adding a new sheet with command button
    By crapmind in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-13-2007, 04:05 AM
  6. Adding a textbox via command button
    By NewExcelUser in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-22-2006, 12:49 PM
  7. Adding A Date Command Button
    By hazey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-12-2005, 05:55 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