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) ?
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.
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
Hi , i recorded the macro, now how to attach to the command button?
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.
It worked,
Thank you Jeff
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks