Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default MsgBox Replacement w/ an UserForm


My 'Yes-No' MsgBox is currently in the middle of my procedure.
Depending upon user selection, either of two sections of code i
accessed. I want to replace this MsgBox with a 2-button UserForm.
am looking for guidance on how to transfer control from the mai
procedure to the UserForm and then back to the main procedure.

Chuckles12

--
Chuckles12
-----------------------------------------------------------------------
Chuckles123's Profile: http://www.excelforum.com/member.php...fo&userid=1494
View this thread: http://www.excelforum.com/showthread.php?threadid=26787

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default MsgBox Replacement w/ an UserForm

Why? Want do you want to do that the MsgBox doesn't do?

As to the actual question, create a public variable, say 'ans', in a
standard code module, and then in the form, set this according to the button
selected, and after unloading the form, test this variable.


--

HTH

RP

"Chuckles123" wrote in message
...

My 'Yes-No' MsgBox is currently in the middle of my procedure.
Depending upon user selection, either of two sections of code is
accessed. I want to replace this MsgBox with a 2-button UserForm. I
am looking for guidance on how to transfer control from the main
procedure to the UserForm and then back to the main procedure.

Chuckles123


--
Chuckles123
------------------------------------------------------------------------
Chuckles123's Profile:

http://www.excelforum.com/member.php...o&userid=14948
View this thread: http://www.excelforum.com/showthread...hreadid=267872



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
Value Replacement palups Excel Worksheet Functions 6 November 20th 09 02:38 AM
#N/A Replacement Susana C via OfficeKB.com Excel Discussion (Misc queries) 2 December 29th 06 05:06 PM
Replacement mowen Excel Discussion (Misc queries) 1 September 7th 05 09:01 PM
MsgBox Replacement w/ an UserForm Chuckles123[_31_] Excel Programming 0 October 9th 04 02:38 PM
Replacement CD Greg Maloney Excel Programming 0 June 18th 04 11:29 AM


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