#1   Report Post  
Posted to microsoft.public.excel.misc
Darius
 
Posts: n/a
Default Create a Popup box


I have a created a macro that selects specific records based on the
criteria
in a cell. I would like to link that cell to a pop up box and have the
box
popup when I click on a toolbar command. I created the toolbar but I
don't
know how to write the macro that would have a box that is linked to the
cell
on the worksheet and after the user enters the criteria in the cell to
run
the macro based on the link to the popup box. I would like for the the
user
to enter the criteria in the pop up box, that criteria populates a cell
in
the worksheet and the macro runs from there. I believe Tom gave me the
code
but I must have copied it wrong. Please help!!!


--
Darius
------------------------------------------------------------------------
Darius's Profile: http://www.excelforum.com/member.php...o&userid=32079
View this thread: http://www.excelforum.com/showthread...hreadid=518324

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default Create a Popup box

Step 1: Click a button to show a box
Step 2: User enters data into box
Step 3: User's data from box is entered to a cell on the sprdsht
Step 4: Another macro processes the information in that cell

Is that correct? If yes, then this code could do it for you. Note
that some lines have an apostrophe, which is a user note (the compiler
ignores everything on the line after the apostrophe).

Sub Get_User_Input()
Dim Response

Response = InputBox("Please enter data:") 'get user input
Range("a10").Value = Response 'apply that input to a cell: change this
from a10 to your cell address
MyMacro 'call the other macro: change "MyMacro" to the actual name of
the macro that should run
End Sub

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
create self-generating numbers with letters and numbers cxlough41 Excel Discussion (Misc queries) 11 January 4th 06 01:16 AM
Create database in excel? wirthless New Users to Excel 7 October 30th 05 02:57 PM
quickly create extra copies of a worksheet template in a workbook simon Excel Worksheet Functions 2 October 23rd 05 07:04 PM
need to create a formula to create a timesheet but haven't a clue AHurd Excel Discussion (Misc queries) 7 August 22nd 05 12:04 PM
Create a tabular control rkg Excel Discussion (Misc queries) 0 August 8th 05 09:25 PM


All times are GMT +1. The time now is 10:21 AM.

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"