Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default display msgbox in order or one after the other


I’ve got a form, which ones completed transfers the data onto th
spreadsheet. Its mainly made up of text boxes.

I’m having problems with my list boxes:

Basically I what I’ve got is
Check
DC
TT
Other

What I’ve done so far is when they click on a option, it pops up with
msgbox asking them to do something:


Private Sub cboPaymentMethod_Click()
Dim Result As String

Result = cboPaymentMethod.Value

If Result = "TT" Then
txtTTReason.Value = InputBox("Please state reason for TT", "T
Reason")

Else

If Result = "CHQ" Then
Result = MsgBox("Please ensure you have: " & vbNewLine & ":: Letter
& vbNewLine & ":: Updated Notes", vbExclamation + vbOKOnly, "Ch
Requirements")


What I need to happen is if chq is selected then,
1. Ask if they have got the letter and updated notes
2. Ask if the chq is going straight to the client
3. if yes then fill autofill the address fields (which are textboxes)
4. else exit sub


Just can get my head round it….any ideas?

Cheers
Harp

--
harpscardif
-----------------------------------------------------------------------
harpscardiff's Profile: http://www.excelforum.com/member.php...fo&userid=2596
View this thread: http://www.excelforum.com/showthread.php?threadid=47786

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default display msgbox in order or one after the other

Since you have multiple things to do when chq is selected, rather than a
series of message or inputboxes I think I would create a second userform. So
when the user selects chq I would Show the 2nd form, take their input an all
the other questions at once, then have an "OK" button on the 2nd userform
that processes it all in one sub; I would also include a "CANCEL" button that
closes the 2nd form without any processing so they can go back to the main
form if they chose chq by mistake.

So 2nd form would probably have:
- Togglebuttons or radiobuttons with Yes/No answer with label "Have letter
and updated notes?"
- Same (toggle or radio buttons) with label "Cheque is going straight to
client?"
- textboxes for the address fields
- Then at bottom the "OK" and "Cancel" buttons with message "Press OK to
process this transaction, Cancel to return to main form"

Just my thoughts, can adopt and customize if you think it would meet your
needs.

--
- K Dales


"harpscardiff" wrote:


Ive got a form, which ones completed transfers the data onto the
spreadsheet. Its mainly made up of text boxes.

Im having problems with my list boxes:

Basically I what Ive got is
Check
DC
TT
Other

What Ive done so far is when they click on a option, it pops up with a
msgbox asking them to do something:


Private Sub cboPaymentMethod_Click()
Dim Result As String

Result = cboPaymentMethod.Value

If Result = "TT" Then
txtTTReason.Value = InputBox("Please state reason for TT", "TT
Reason")

Else

If Result = "CHQ" Then
Result = MsgBox("Please ensure you have: " & vbNewLine & ":: Letter"
& vbNewLine & ":: Updated Notes", vbExclamation + vbOKOnly, "Chq
Requirements")


What I need to happen is if chq is selected then,
1. Ask if they have got the letter and updated notes
2. Ask if the chq is going straight to the client
3. if yes then fill autofill the address fields (which are textboxes)
4. else exit sub


Just can get my head round it€¦.any ideas?

Cheers
Harps


--
harpscardiff
------------------------------------------------------------------------
harpscardiff's Profile: http://www.excelforum.com/member.php...o&userid=25960
View this thread: http://www.excelforum.com/showthread...hreadid=477867


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 display remaining txt file which overflowed MsgBox display? EagleOne Excel Discussion (Misc queries) 1 November 2nd 06 01:10 PM
MsgBox Display Michael S. Excel Programming 2 June 16th 05 10:55 PM
Display of $ in Msgbox David Excel Programming 2 September 8th 04 09:38 AM
DISPLAY RANGE AT MSGBOX GUS Excel Programming 2 September 25th 03 08:38 PM
Specify font for MsgBox display? shockley Excel Programming 1 September 11th 03 01:50 PM


All times are GMT +1. The time now is 01:47 AM.

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"