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

I using a number of user forms for my project.

At the moment I am building an error trap to catch if the value in a
cell exists or not. If there is a value, then a new value is not to be
entered, and the user should make another selection.

However, if seems that I may have to call upon the sub procedure of a
different user form I am in to bring up the selection screen. How can
I do this if the procedure is private?

To be more specific:

I am making a yahtzee game. When the person wants to score their dice
roll they click on a score button, which brings them to a new userfrom.
Here, they select how they wish to score their roll, and the
calculated value is plugged into a scorecard on the worksheet.

How can I have the score choice form pop up again without losing any of
my variable values?

If someone could reply to may question soon, it would be a great help.

Thank you.


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default calling private subs

Hi,
Try declaring the variables as public. Do this once for each outside the
subs concerned.
Cheers


"dunlklee" wrote in message
...
I using a number of user forms for my project.

At the moment I am building an error trap to catch if the value in a
cell exists or not. If there is a value, then a new value is not to be
entered, and the user should make another selection.

However, if seems that I may have to call upon the sub procedure of a
different user form I am in to bring up the selection screen. How can
I do this if the procedure is private?

To be more specific:

I am making a yahtzee game. When the person wants to score their dice
roll they click on a score button, which brings them to a new userfrom.
Here, they select how they wish to score their roll, and the
calculated value is plugged into a scorecard on the worksheet.

How can I have the score choice form pop up again without losing any of
my variable values?

If someone could reply to may question soon, it would be a great help.

Thank you.


---
Message posted from http://www.ExcelForum.com/



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
subs and hidden tabs Mike Excel Discussion (Misc queries) 6 January 28th 07 07:19 PM
Combining two Subs Petitboeuf Excel Discussion (Misc queries) 6 April 27th 06 03:42 PM
Sort subs. by amount Martin ©¿©¬ @REMOVETHIS.plus.com Excel Discussion (Misc queries) 4 March 8th 06 05:01 PM
Common Functions and Subs rbnorth Excel Discussion (Misc queries) 3 February 15th 06 10:07 PM
OnTime running 2 subs Martin Wheeler Excel Programming 3 August 23rd 03 07:10 PM


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