arnoudholtzer
New Member
- Joined
- May 7, 2020
- Messages
- 12
- Office Version
- 365
- 2019
- Platform
- Windows
Hi ALL,
I couldn't find a workable solution anywhere for my issue.
I have a working VBA script triggered by a button on sheet 1 to generate a mail by the click on a button and attach a copy of sheet 2 as a new workbook that holds a button with another maco.
Problem arrises when i try to make the attached newly generated workbook (copy of sheet 2) a macro enabled workbook with a clickable button in it.
When the script copies sheet 2 along with the button and assigned macro sub in sheet 2 towards a newly generated workbook it will attach that new workbook to the generated mail.
However the button in the newly generated workbook still refers towards the assigned macro of the initial workbook.
See below attachment for a testfile containing the full issue. When you press the button on sheet 1 a 'display' version of a generated mail is created with sheet 2 as attachment but with incorrect macro button link to previous workbook
Link to excel testfile
When i open the attached newly generated excel book from the mail the assigned button refers to the previous workbook like shown in below screenshot
Can anyone help me solve this issue to make the button refer towards it's copied version of the sub macro of sheet 2?
Thanks in advance for thinking along
I couldn't find a workable solution anywhere for my issue.
I have a working VBA script triggered by a button on sheet 1 to generate a mail by the click on a button and attach a copy of sheet 2 as a new workbook that holds a button with another maco.
Problem arrises when i try to make the attached newly generated workbook (copy of sheet 2) a macro enabled workbook with a clickable button in it.
When the script copies sheet 2 along with the button and assigned macro sub in sheet 2 towards a newly generated workbook it will attach that new workbook to the generated mail.
However the button in the newly generated workbook still refers towards the assigned macro of the initial workbook.
See below attachment for a testfile containing the full issue. When you press the button on sheet 1 a 'display' version of a generated mail is created with sheet 2 as attachment but with incorrect macro button link to previous workbook
Link to excel testfile
When i open the attached newly generated excel book from the mail the assigned button refers to the previous workbook like shown in below screenshot
Can anyone help me solve this issue to make the button refer towards it's copied version of the sub macro of sheet 2?
Thanks in advance for thinking along