Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Checking the value of a radiobutton in Excel VBA

I have the following code:

Do Until [ ... ]
repName = wrksheet.Cells(currentInputRow, "A")

'does user want to process commissions for this
user?
If
mainForm.repsNames_frame.allOrSome_frame.someReps_ rb.Value
= True Then 'if this button is checked, user only wants
some reps
' do lots of stuff...
End If
Loop

I'm getting the error "Object doesn't support this
property or method" on the line beginning with "IF".
What's the proper way for me to check the value of a
radiobutton, or in other words, why isn't this working?
(As you can see from the current reading of that line, the
readiobutton is enveloped in a frame inside of another
frame.)

Thanks so much,
Eliezer
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Checking the value of a radiobutton in Excel VBA

Hi Eliezer

Nested frames or not, the Form itself would be the button's parent in this
case.
mainForm.someReps_rb.Value should do.

HTH. Best wishes Harald

"Eliezer" skrev i melding
...
I have the following code:

Do Until [ ... ]
repName = wrksheet.Cells(currentInputRow, "A")

'does user want to process commissions for this
user?
If
mainForm.repsNames_frame.allOrSome_frame.someReps_ rb.Value
= True Then 'if this button is checked, user only wants
some reps
' do lots of stuff...
End If
Loop

I'm getting the error "Object doesn't support this
property or method" on the line beginning with "IF".
What's the proper way for me to check the value of a
radiobutton, or in other words, why isn't this working?
(As you can see from the current reading of that line, the
readiobutton is enveloped in a frame inside of another
frame.)

Thanks so much,
Eliezer



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Checking the value of a radiobutton in Excel VBA

Harald,

Thanks so much! Perfect!
Eliezer


-----Original Message-----
Hi Eliezer

Nested frames or not, the Form itself would be the

button's parent in this
case.
mainForm.someReps_rb.Value should do.

HTH. Best wishes Harald

"Eliezer" skrev i

melding
...
I have the following code:

Do Until [ ... ]
repName = wrksheet.Cells(currentInputRow, "A")

'does user want to process commissions for this
user?
If

mainForm.repsNames_frame.allOrSome_frame.someReps_ rb.Value
= True Then 'if this button is checked, user only wants
some reps
' do lots of stuff...
End If
Loop

I'm getting the error "Object doesn't support this
property or method" on the line beginning with "IF".
What's the proper way for me to check the value of a
radiobutton, or in other words, why isn't this working?
(As you can see from the current reading of that line,

the
readiobutton is enveloped in a frame inside of another
frame.)

Thanks so much,
Eliezer

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
Spell Checking with checking cell notes jfitzpat Excel Discussion (Misc queries) 0 August 8th 07 10:26 PM
Duplicate Checking in Excel anthony Excel Programming 2 September 3rd 04 08:21 PM
listbox with checkbox or radiobutton groups Mark[_36_] Excel Programming 2 February 12th 04 02:44 PM
checking for EOF in excel ibeetb Excel Programming 2 September 17th 03 11:07 PM
checking for EOF in excel steve Excel Programming 0 September 11th 03 06:28 PM


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