Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Automate a button click event

Is your button from the Control Toolbox or from the forms toolbar. Buttons
from the control toolbox write their code right in the sheet upon which they
are placed and are actual buttons with properties... Buttons from the Forms
toolbar are more like pictures of buttons and are attached to code written in
modules.

If from the control toolbox then in the sheet you will have private button
click event code. Change this procedure from private to public and you can
just call it like any other procedure, kinda like this.

Sheet1.CommandButton1_Click()

If from the forms tool bar then just reference the module code kinda like
this...

module1.MySub
--
HTH...

Jim Thomlinson


"JD" wrote:

I am new to Excel programming .
I have a VB project that fills an Excel spreadsheet and upon completion it
becomes visible. However I need to make changes in one column. I created a
button that the user clicks and the entries change.
How do I get a button click event to fire automatically when the form
activates after the spreadsheet has been filled.

thanks



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
On click button event [email protected] Excel Worksheet Functions 1 November 30th 06 04:39 PM
Move the cursor to a cell in button click event Man Utd Excel Programming 2 June 16th 05 04:48 AM
capture right mouse button click event on cell Reinhard Thomann Excel Programming 0 January 20th 05 11:41 AM
Running command button click event code Marishah Warren Excel Programming 1 December 31st 03 07:53 AM
specialcells and toolbox button click event Srinath Excel Programming 2 August 13th 03 06:43 PM


All times are GMT +1. The time now is 07:31 PM.

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"