#1   Report Post  
Aussie
 
Posts: n/a
Default Dialog Box

I need some simple advice on how to make a dialog box launch with the auto
open macro to have a value entered by the user and pasted in a cell on the
worksheet. Thanks in advance.


  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Look in VBA help for Application.InputBox
I use this in an autofilter for entering are codes when filtering on phone
numbers

Sub Area_Code()
Application.ScreenUpdating = False
UserVal = Application.InputBox("Enter Area Code")
If UserVal = False Then
Exit Sub
Else
Selection.AutoFilter Field:=4, Criteria1:=UserVal & "*", Operator:=xlAnd
End If
Application.ScreenUpdating = True
End Sub


--

Regards,

Peo Sjoblom

"Aussie" wrote in message
...
I need some simple advice on how to make a dialog box launch with the auto
open macro to have a value entered by the user and pasted in a cell on the
worksheet. Thanks in advance.




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
how to use the search dialog via a macro? cyrille Excel Worksheet Functions 4 February 17th 05 10:41 PM
how to use the search dialog box ? cyrille New Users to Excel 2 February 17th 05 10:28 PM
Excel's Dialog Box Dialog Box Excel Discussion (Misc queries) 1 February 12th 05 12:53 PM
Using the "Go To" dialog for "Copy" Fred Holmes Excel Discussion (Misc queries) 0 January 20th 05 06:40 PM
Update dialog box Tim Kredlo Excel Worksheet Functions 7 November 11th 04 07:14 PM


All times are GMT +1. The time now is 06:45 PM.

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

About Us

"It's about Microsoft Excel"