Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Need help with adding a button to sheet

Hi,
I have a spreadsheet that is linked to an Access database. I have created a
macro that will update or sync the sheet with the database. I want to make
it so a user can just click a button to run that macro. I have the button
on the sheet, but I'm not sure how to make it run the macro. Please Help.

Thanks,
Dan


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Need help with adding a button to sheet

Dan,

If you placed the button on the sheet and it didn't prompt you for the
name of the macro, you probably used a button from the
Controls Toolbox.

Right click on the button and select "View Code"
You'll be taken to the "Click" event for that button.
Just place the name of your macro between the Sub.. and End Sub.

Or....delete that button and select one from the "Forms" toolbar.
As soon as you create the button, you'll be prompted for the
macro to assign to it

John

"Dan B" wrote in message
...
Hi,
I have a spreadsheet that is linked to an Access database. I have created

a
macro that will update or sync the sheet with the database. I want to

make
it so a user can just click a button to run that macro. I have the button
on the sheet, but I'm not sure how to make it run the macro. Please Help.

Thanks,
Dan




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Need help with adding a button to sheet

Perfect....Thanks!!



"John Wilson" wrote in message
...
Dan,

If you placed the button on the sheet and it didn't prompt you for the
name of the macro, you probably used a button from the
Controls Toolbox.

Right click on the button and select "View Code"
You'll be taken to the "Click" event for that button.
Just place the name of your macro between the Sub.. and End Sub.

Or....delete that button and select one from the "Forms" toolbar.
As soon as you create the button, you'll be prompted for the
macro to assign to it

John

"Dan B" wrote in message
...
Hi,
I have a spreadsheet that is linked to an Access database. I have

created
a
macro that will update or sync the sheet with the database. I want to

make
it so a user can just click a button to run that macro. I have the

button
on the sheet, but I'm not sure how to make it run the macro. Please

Help.

Thanks,
Dan






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Need help with adding a button to sheet

Dan,

Happy to have been a help.
Thanks for posting back.

John

"Dan B" wrote in message
...
Perfect....Thanks!!



"John Wilson" wrote in message
...
Dan,

If you placed the button on the sheet and it didn't prompt you for the
name of the macro, you probably used a button from the
Controls Toolbox.

Right click on the button and select "View Code"
You'll be taken to the "Click" event for that button.
Just place the name of your macro between the Sub.. and End Sub.

Or....delete that button and select one from the "Forms" toolbar.
As soon as you create the button, you'll be prompted for the
macro to assign to it

John

"Dan B" wrote in message
...
Hi,
I have a spreadsheet that is linked to an Access database. I have

created
a
macro that will update or sync the sheet with the database. I want to

make
it so a user can just click a button to run that macro. I have the

button
on the sheet, but I'm not sure how to make it run the macro. Please

Help.

Thanks,
Dan








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a Button Bob Barnes Excel Discussion (Misc queries) 2 June 30th 08 07:36 PM
color fill button is not adding color to my spread sheet mitchnmd Excel Worksheet Functions 1 September 26th 07 04:36 PM
Adding button dynamically lagodch Excel Programming 1 October 7th 03 10:14 PM
adding button for add-in Tom Ogilvy Excel Programming 1 October 1st 03 11:23 PM
adding button for add-in jason Excel Programming 0 October 1st 03 10:21 PM


All times are GMT +1. The time now is 09:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"