Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 22nd, 2004, 02:22 PM
Registered User
 
Join Date: Jan 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Working with forms

Hi

I would like to work with forms in my excel.
for example:
I start my macro and the form is exihibited. When I click in the button a message appears.

How can I do this?


[]´s




 
Old January 23rd, 2004, 07:18 AM
Authorized User
 
Join Date: Jul 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alex_read
Default

In your macro, use something like this:
Userform1Name.show()

In the code for your forms button, use this:

Private Sub CommandButton1_Click()
    msgbox("Some Text Here")
End Sub







Similar Threads
Thread Thread Starter Forum Replies Last Post
working with multiple forms jill2new Visual Basic 2005 Basics 1 March 1st, 2007 06:48 PM
C# classes working for multiple forms w/ reseting Nathan Fleming C# 2005 1 September 11th, 2006 04:45 PM
Working with Forms and Date in Javascript danieljava Pro JSP 1 January 16th, 2006 05:56 AM
Working with Forms and Popup window in Javascritp danieljava JSP Basics 0 November 20th, 2005 09:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.