VBA code for command button

Solved/Closed
MUKUL_1308 Posts 8 Registration date Friday 15 June 2018 Status Member Last seen 5 July 2018 - 15 Jun 2018 à 19:58
MUKUL_1308 Posts 8 Registration date Friday 15 June 2018 Status Member Last seen 5 July 2018 - 20 Jun 2018 à 18:10
hello everyone,
i had created a macro enabled workbook (abc123.xlsm)which holds about 10 user forms and every user form complies data to separate worksheet in the same workbook(abc123.xlsm). now the next thing is I want to create a common command button which moves data of each sheet into different excels files(could be named as target1.xlsx , target2.xlsx, target3.xlsx . . . . . . .. up to target10.xlsx). all target files are available in different folder named as "track". i am unable to create a vba code for that command button .
the thing that command button should do is :
" open target file then move data then save and then close the target file "

please help me for this..
Related:

1 response

Blocked Profile
17 Jun 2018 à 21:07
Have you ever rerecorded a SAVE AS macro?

I encourage you to actually record a MACRO, and look at the code!

MUKUL_1308 Posts 8 Registration date Friday 15 June 2018 Status Member Last seen 5 July 2018
19 Jun 2018 à 14:45
sir,
it's still not working
Blocked Profile
19 Jun 2018 à 16:37
Did you record a macro? Post it here, and I will assist with changing it to a Dynamic Script!
MUKUL_1308 Posts 8 Registration date Friday 15 June 2018 Status Member Last seen 5 July 2018
20 Jun 2018 à 18:10
Sir,
thank you so much now it's working perfectly. thanks a lot.