LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default userform control value as constant

Hello

Been trying to find a smooth way around this problem but can't find
anything...Grateful for any advice.
My problem is this:

Have users fill in a userform. Will be using the information entered
in textboxes and chosen from radio buttons over and over again in the
code and send it between functions.

Was hoping to be able to define a public consant but that doesnt work.
Dont want to have to type it eg./ frmrft.cboxA1 all over the place.
Setting myself up for mistakes. What if the A1 is no longer found in
cboxA1 but in txtboxA1...

What I have done until now is define A1 under Ok_click() and then
"sent" it to related functions using Byval. Have ended up with 9 ByVal
for some functions...Is that Ok?

Feels like there should be a better way to do this...

Any suggestions? Anybody?
 
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
Selecting control on userform with part of control name (set question) Keith Excel Programming 4 January 10th 07 02:24 PM
Excel: Format Control: 'cell link' reamins constant. How to copy Rodway N Excel Worksheet Functions 0 September 7th 05 06:21 PM
Control Sequence from Userform Control Nigel Excel Programming 3 December 29th 04 01:25 PM
Userform control ZMore Excel Programming 1 March 5th 04 11:34 PM
Userform control Phillips Excel Programming 1 November 20th 03 07:33 PM


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