A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Getting user input using a form and returning to procedure



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 7th 07, 07:50 PM posted to microsoft.public.outlook.program_vba
Twotone
external usenet poster
 
Posts: 7
Default Getting user input using a form and returning to procedure

I'm sorry if this is an idiotic question but I've looked all over for an
answer.

I have a procedure in Outlook (2003). After a few lines of code, I want to
display a form, get some input from the user and then return to the original
procedure and carry on executing code just below the line where I made the
form open (using the information input by the user).

I cannot work out how to get the form to close and the code to continue
running where it effectively paused to allow the user input on the form.

I can see how to do this using lots of separate modules which call each
other in turn but that seems very clumsy.

Any help would be much appreciated.
Ads
  #2  
Old February 7th 07, 10:35 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Getting user input using a form and returning to procedure

Use this method:

MyFormName.Show 1

1 equates to True for the Modal argument, which freezes the form and stops
your code until the form is closed, which will resume code after that method.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Twotone" wrote:

I'm sorry if this is an idiotic question but I've looked all over for an
answer.

I have a procedure in Outlook (2003). After a few lines of code, I want to
display a form, get some input from the user and then return to the original
procedure and carry on executing code just below the line where I made the
form open (using the information input by the user).

I cannot work out how to get the form to close and the code to continue
running where it effectively paused to allow the user input on the form.

I can see how to do this using lots of separate modules which call each
other in turn but that seems very clumsy.

Any help would be much appreciated.

  #3  
Old February 7th 07, 10:46 PM posted to microsoft.public.outlook.program_vba
Twotone
external usenet poster
 
Posts: 7
Default Getting user input using a form and returning to procedure

Thank you. Can't understand how I didn't see that in the help screens!

"Eric Legault [MVP - Outlook]" wrote:

Use this method:

MyFormName.Show 1

1 equates to True for the Modal argument, which freezes the form and stops
your code until the form is closed, which will resume code after that method.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Twotone" wrote:

I'm sorry if this is an idiotic question but I've looked all over for an
answer.

I have a procedure in Outlook (2003). After a few lines of code, I want to
display a form, get some input from the user and then return to the original
procedure and carry on executing code just below the line where I made the
form open (using the information input by the user).

I cannot work out how to get the form to close and the code to continue
running where it effectively paused to allow the user input on the form.

I can see how to do this using lots of separate modules which call each
other in turn but that seems very clumsy.

Any help would be much appreciated.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
form with variable/flexible input textbox David Chang Outlook and VBA 2 December 5th 06 03:13 PM
transfer calender input from 1 user to another Paul Dundee Outlook - Calandaring 1 May 16th 06 10:04 PM
deleted emails returning David Outlook - General Queries 0 March 30th 06 06:09 PM
Old Reminders Keep Returning Anita Taylor Outlook - Calandaring 0 March 9th 06 04:11 PM
Cannot open a form if input spreadsheet thtsps Outlook - Using Forms 5 February 7th 06 04:45 PM


All times are GMT +1. The time now is 08:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.