Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have a Custom form Options Popup appear whenever an "Options" Comman button is pressed on my main page. Now within this Popup there ar several options that the user will be able to manipulate. Although can't get the values to pass back from the popup. On the main page there is a "Calculate" button that does all th calculations, that leads to a Private Sub that does all the work. S basically Im asking can I get a custom form options to work with m spreadsheet here is some code, I hope it helps Private Sub cmdOpts_Click() Load SSheduleOpt 'Load the Form into memory SSheduleOpt.Show 'Show the form on screen End Sub This is where the popup appears although it does appear but it does no affect my spreadsheet yet. Private Sub cmdCalcWD_Click() Dim SSheet As New SSched ' create an instance of your class object 'Set SSheet = New SSched 'Functions to actually work the Spreadsheet cmdClear_Click 'Clears the workspace SetDays SSheet 'Sends SShet Variable to the SetDays Su Routine End Sub This one is the Calculate button, don't mind the custom class, but just want to know how to tie my options menu into "SetDays" Sub. M brain is kinda scattered (Long Day of coding) so if it doesn't mak sense let me know I'll Edit it. Thanks in advance -- Xiaze ----------------------------------------------------------------------- Xiazer's Profile: http://www.excelforum.com/member.php...fo&userid=3158 View this thread: http://www.excelforum.com/showthread.php?threadid=54217 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Embed your databoxes on the form then address them through form.property
setups like Range.("A1").Value = Form1.Textbox1.text or constructs in that vein -- ;-) -- Wendell A. Clark, BS ------------------------------------- CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, please notify us by reply e-mail. You are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please destroy all copies of this communication and any attachments. Contact the sender if it continues. "Xiazer" wrote in message ... I have a Custom form Options Popup appear whenever an "Options" Command button is pressed on my main page. Now within this Popup there are several options that the user will be able to manipulate. Although I can't get the values to pass back from the popup. On the main page there is a "Calculate" button that does all the calculations, that leads to a Private Sub that does all the work. So basically Im asking can I get a custom form options to work with my spreadsheet here is some code, I hope it helps Private Sub cmdOpts_Click() Load SSheduleOpt 'Load the Form into memory SSheduleOpt.Show 'Show the form on screen End Sub This is where the popup appears although it does appear but it does not affect my spreadsheet yet. Private Sub cmdCalcWD_Click() Dim SSheet As New SSched ' create an instance of your class object 'Set SSheet = New SSched 'Functions to actually work the Spreadsheet cmdClear_Click 'Clears the workspace SetDays SSheet 'Sends SShet Variable to the SetDays Sub Routine End Sub This one is the Calculate button, don't mind the custom class, but i just want to know how to tie my options menu into "SetDays" Sub. My brain is kinda scattered (Long Day of coding) so if it doesn't make sense let me know I'll Edit it. Thanks in advance. -- Xiazer ------------------------------------------------------------------------ Xiazer's Profile: http://www.excelforum.com/member.php...o&userid=31581 View this thread: http://www.excelforum.com/showthread...hreadid=542174 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
you can add to them before you Show the dialogue and read them back before
you release the memory -- Wendell A. Clark, BS ------------------------------------- CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, please notify us by reply e-mail. You are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please destroy all copies of this communication and any attachments. Contact the sender if it continues. "Xiazer" wrote in message ... I have a Custom form Options Popup appear whenever an "Options" Command button is pressed on my main page. Now within this Popup there are several options that the user will be able to manipulate. Although I can't get the values to pass back from the popup. On the main page there is a "Calculate" button that does all the calculations, that leads to a Private Sub that does all the work. So basically Im asking can I get a custom form options to work with my spreadsheet here is some code, I hope it helps Private Sub cmdOpts_Click() Load SSheduleOpt 'Load the Form into memory SSheduleOpt.Show 'Show the form on screen End Sub This is where the popup appears although it does appear but it does not affect my spreadsheet yet. Private Sub cmdCalcWD_Click() Dim SSheet As New SSched ' create an instance of your class object 'Set SSheet = New SSched 'Functions to actually work the Spreadsheet cmdClear_Click 'Clears the workspace SetDays SSheet 'Sends SShet Variable to the SetDays Sub Routine End Sub This one is the Calculate button, don't mind the custom class, but i just want to know how to tie my options menu into "SetDays" Sub. My brain is kinda scattered (Long Day of coding) so if it doesn't make sense let me know I'll Edit it. Thanks in advance. -- Xiazer ------------------------------------------------------------------------ Xiazer's Profile: http://www.excelforum.com/member.php...o&userid=31581 View this thread: http://www.excelforum.com/showthread...hreadid=542174 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() If I write my code so that it doesn't unload the form could that kee the options that the users set? I really wanted to avoid storin information on the spreadsheet, i really want to keep it all in VBA. i it possible to do that -- Xiaze ----------------------------------------------------------------------- Xiazer's Profile: http://www.excelforum.com/member.php...fo&userid=3158 View this thread: http://www.excelforum.com/showthread.php?threadid=54217 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I'm hoping that I can find an easier way to do this but best I am doing is having On Change update the Spreadsheet -- Xiazer ------------------------------------------------------------------------ Xiazer's Profile: http://www.excelforum.com/member.php...o&userid=31581 View this thread: http://www.excelforum.com/showthread...hreadid=542174 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Xiazer,
When you load the form you can manipulate its data (text/cobo/lists-boxes) then you display it to the user and they can see the data that you allowed. when they click [ok] the form -- You can cause the form to be 'hidden' so that the data remains in the background. then If you want to use the data elsewhere as well you can : 1. build a small class with protected properties (keeping -- your data unalterable except by you -- or your code) - or - 1. you can set a global-variable that is visible to all code-segments (yours or others) when you unload the form the class instantiation or the global-variable (dependent upon where you initialized it) will remain in memory (although usually inaccessible) setting the form to nothing actually releases all references to the memory -- any further attempt to use it will either error-out or cause a rebuild of the form -- Wendell A. Clark, BS ------------------------------------- CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, please notify us by reply e-mail. You are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please destroy all copies of this communication and any attachments. Contact the sender if it continues. "Xiazer" wrote in message ... If I write my code so that it doesn't unload the form could that keep the options that the users set? I really wanted to avoid storing information on the spreadsheet, i really want to keep it all in VBA. is it possible to do that? -- Xiazer ------------------------------------------------------------------------ Xiazer's Profile: http://www.excelforum.com/member.php...o&userid=31581 View this thread: http://www.excelforum.com/showthread...hreadid=542174 |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() So Do I want to Load and Unload only once -- Xiaze ----------------------------------------------------------------------- Xiazer's Profile: http://www.excelforum.com/member.php...fo&userid=3158 View this thread: http://www.excelforum.com/showthread.php?threadid=54217 |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You will want to load when you open the sheet ,
hide in the middle once you've set your variables and unload when you close ;-) -- Wendell A. Clark, BS ------------------------------------- CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, please notify us by reply e-mail. You are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please destroy all copies of this communication and any attachments. Contact the sender if it continues. "Xiazer" wrote in message ... So Do I want to Load and Unload only once? -- Xiazer ------------------------------------------------------------------------ Xiazer's Profile: http://www.excelforum.com/member.php...o&userid=31581 View this thread: http://www.excelforum.com/showthread...hreadid=542174 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Custom Dialog Boxes | Excel Programming | |||
editing custom dialog boxes | Excel Worksheet Functions | |||
Passing variables from one sub to another | Excel Programming | |||
Passing Variables | Excel Programming | |||
Passing Variables | Excel Programming |