button to run a saved import

Hi

I saved an excel worksheet import, now i need to run this import  clicking a button
what is the code to run this import from a button

best regards
robert
titorober23Asked:
Who is Participating?
 
slamhoundConnect With a Mentor Commented:
Just select the button tool from the menu and using the wizard, set it up as a Close button. Then just replace the close button code with whatever your code is. If you code is in a function or sub you can call it using:

MyFunction
or
Result = MyFunction()
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.