Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default Forms and Macros

Howdie,

Is it possible to create a form that when you click a button runs a
Macro based on the contents of what has been entered into a form?
If yes...Any ideas how... ?

Regards

D

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Forms and Macros

Yes, but we probably need more detail to be specific.

In principle however, you create a macro with arguments, and call that macro
with form elements as the parameters. For example

myMacro Textbox1.Value, Combobox1.Value

and then myMacro looks like

Sub myMacro(val1 As String, val2 As String)
' then use val1 and val2 in here
End Sub

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Darin Kramer" wrote in message
...
Howdie,

Is it possible to create a form that when you click a button runs a
Macro based on the contents of what has been entered into a form?
If yes...Any ideas how... ?

Regards

D

*** Sent via Developersdex http://www.developersdex.com ***



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
Macros, Forms, & Protected Worksheets..... how would I... awadmin Setting up and Configuration of Excel 1 September 13th 09 03:36 AM
Excel forms in macros Vijay Kotian Excel Discussion (Misc queries) 1 November 9th 06 04:08 PM
RefEdits and normal forms / forms in a DLL David Welch Excel Programming 0 December 1st 04 03:49 PM
Forms that open from forms Azza Excel Programming 1 October 12th 04 10:54 PM
Calling Forms from Forms - Exit problems Stuart[_5_] Excel Programming 3 May 25th 04 06:50 AM


All times are GMT +1. The time now is 12:35 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"