Solved

button to run a saved import

Posted on 2008-10-13
1
429 Views
Last Modified: 2008-10-19
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
0
Comment
Question by:titorober23
1 Comment
 
LVL 10

Accepted Solution

by:
slamhound earned 250 total points
ID: 22708503
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

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now