Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / February 2006

Tip: Looking for answers? Try searching our database.

Changing Command Button Based on Data Entry

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill - 20 Feb 2006 22:19 GMT
Hello, I am completely new to VBA, so this is confounding me.
I have a form to add rows of data to a spreadsheet.  I would like to change
a Command Button Caption and action based on data entry.
Example: user  inputs width, length, and height.   Command Button caption
reads "Calculate Volume".  When the command button is clicked, the volume is
calculated and displayed on the form, the same command button caption then
reads "Enter Data."  When the button is clicked again, the row will be added
to the spreadsheet and the form is ready to accept the next set of data.
Possible?
Any help appreciated.
Jim Thomlinson - 20 Feb 2006 22:32 GMT
Far be it from me to tell you what you want, but the flow of that seems a
little bit odd. Instead of that, how about having 2 input text boxes and a
lable. When the input textboxes contain valid entries, the lable displays the
volume and the command button to add the lines is enabled. The command button
is not enabled until the text boxes contain valid entries? That seems a bit
more intuitive to me.
Signature

HTH...

Jim Thomlinson

> Hello, I am completely new to VBA, so this is confounding me.
> I have a form to add rows of data to a spreadsheet.  I would like to change
[quoted text clipped - 6 lines]
> Possible?
> Any help appreciated.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.