Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default InputBox Query

Hi
I have an inputbox which stores the message in stMessage.

stMessage has bee put as a public sub so we can use the stMessage in other
sub's.

I have a cmd button which checks that all details are entered prior to
emailing the spreadsheet and if something is missing a msgbox appears
advising the user to enter information.

When this happens, the stMessage is wiped clean and we lose the message.

Is there a way to make sure that the stMessage doesn't change unless advised
to do so.

Thanks
Noemi
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default InputBox Query

Sounds like you are using stMessage to store the answer from the second
message box you talk about, as well as the original inputbox. Just use
another variable for that message box.

Jeff

"Noemi" wrote in message
...
Hi
I have an inputbox which stores the message in stMessage.

stMessage has bee put as a public sub so we can use the stMessage in other
sub's.

I have a cmd button which checks that all details are entered prior to
emailing the spreadsheet and if something is missing a msgbox appears
advising the user to enter information.

When this happens, the stMessage is wiped clean and we lose the message.

Is there a way to make sure that the stMessage doesn't change unless
advised
to do so.

Thanks
Noemi



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default InputBox Query

Hi Jeff
I tried it but the stMessage stl goes to nothing once the program ends due
to missing data needs to be entered.

Is there a way to store the information in the stMessage so even if the
program ends (due to having to enter additional information) we dont lose the
comments entered previously.

Thanks
Noemi

"Jeff Standen" wrote:

Sounds like you are using stMessage to store the answer from the second
message box you talk about, as well as the original inputbox. Just use
another variable for that message box.

Jeff

"Noemi" wrote in message
...
Hi
I have an inputbox which stores the message in stMessage.

stMessage has bee put as a public sub so we can use the stMessage in other
sub's.

I have a cmd button which checks that all details are entered prior to
emailing the spreadsheet and if something is missing a msgbox appears
advising the user to enter information.

When this happens, the stMessage is wiped clean and we lose the message.

Is there a way to make sure that the stMessage doesn't change unless
advised
to do so.

Thanks
Noemi




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default InputBox Query

Ah, sorry, misunderstood your question. Variables disappear from memory when
the program finishes, so you need to store the information somewhere. I
would use a hidden Name, since that is kept even when the workbook is
closed. You can then fetch it from there when you need to.

Jeff


"Noemi" wrote in message
...
Hi Jeff
I tried it but the stMessage stl goes to nothing once the program ends due
to missing data needs to be entered.

Is there a way to store the information in the stMessage so even if the
program ends (due to having to enter additional information) we dont lose
the
comments entered previously.

Thanks
Noemi

"Jeff Standen" wrote:

Sounds like you are using stMessage to store the answer from the second
message box you talk about, as well as the original inputbox. Just use
another variable for that message box.

Jeff

"Noemi" wrote in message
...
Hi
I have an inputbox which stores the message in stMessage.

stMessage has bee put as a public sub so we can use the stMessage in
other
sub's.

I have a cmd button which checks that all details are entered prior to
emailing the spreadsheet and if something is missing a msgbox appears
advising the user to enter information.

When this happens, the stMessage is wiped clean and we lose the
message.

Is there a way to make sure that the stMessage doesn't change unless
advised
to do so.

Thanks
Noemi






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default InputBox Query

Hi Jeff
I dont understand what you mean by hidden Name.
Can you please clarify for me.
Thanks
Noemi

"Jeff Standen" wrote:

Ah, sorry, misunderstood your question. Variables disappear from memory when
the program finishes, so you need to store the information somewhere. I
would use a hidden Name, since that is kept even when the workbook is
closed. You can then fetch it from there when you need to.

Jeff


"Noemi" wrote in message
...
Hi Jeff
I tried it but the stMessage stl goes to nothing once the program ends due
to missing data needs to be entered.

Is there a way to store the information in the stMessage so even if the
program ends (due to having to enter additional information) we dont lose
the
comments entered previously.

Thanks
Noemi

"Jeff Standen" wrote:

Sounds like you are using stMessage to store the answer from the second
message box you talk about, as well as the original inputbox. Just use
another variable for that message box.

Jeff

"Noemi" wrote in message
...
Hi
I have an inputbox which stores the message in stMessage.

stMessage has bee put as a public sub so we can use the stMessage in
other
sub's.

I have a cmd button which checks that all details are entered prior to
emailing the spreadsheet and if something is missing a msgbox appears
advising the user to enter information.

When this happens, the stMessage is wiped clean and we lose the
message.

Is there a way to make sure that the stMessage doesn't change unless
advised
to do so.

Thanks
Noemi








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
Using the value in the inputbox again cappuccine[_8_] Excel Programming 3 November 5th 05 12:22 AM
Using InputBox to get desired date for a Query pulling data from Access into Excel cbeebe[_6_] Excel Programming 0 November 4th 04 09:30 PM
Using InputBox to get desired date for a Query pulling data from Access into Excel cbeebe[_5_] Excel Programming 1 November 4th 04 08:23 PM
Inputbox and Application.InputBox Maria[_7_] Excel Programming 1 September 20th 04 11:36 AM
Using InputBox to change query criteria in Access JohnBoy Excel Programming 2 September 16th 03 02:08 PM


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