Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Referencing check box names in VBE

My checkbox's NAME value is EndCaps
By default it's ENABLED value is set to false. When i load my userform, if
cell b70, i want the enabled value to switch to true.
Here's what I've been trying.... don't laugh, i'm still new :-P
GutterOptions is my userform

Sub FabGutterMain()
If Range("B7").Value 0 Then EndCaps.Enabled = True
GutterOptions.Show

it keeps giving me an error saying "Object Required".
Help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default Referencing check box names in VBE

You need to qualify the reference to EndCaps eg:

Sub FabGutterMain()
If Range("B7").Value 0 Then _
GutterOptions.EndCaps.Enabled = True
GutterOptions.Show
End Sub

Hope this helps
Rowan

jweasl wrote:
My checkbox's NAME value is EndCaps
By default it's ENABLED value is set to false. When i load my userform, if
cell b70, i want the enabled value to switch to true.
Here's what I've been trying.... don't laugh, i'm still new :-P
GutterOptions is my userform

Sub FabGutterMain()
If Range("B7").Value 0 Then EndCaps.Enabled = True
GutterOptions.Show

it keeps giving me an error saying "Object Required".
Help!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default Referencing check box names in VBE

You need to specify the form name that it is in:

Sub FabGutterMain()
If Range("B7").Value 0 Then yourFormName.EndCaps.Enabled = True
GutterOptions.Show


"jweasl" wrote in message
...
My checkbox's NAME value is EndCaps
By default it's ENABLED value is set to false. When i load my userform, if
cell b70, i want the enabled value to switch to true.
Here's what I've been trying.... don't laugh, i'm still new :-P
GutterOptions is my userform

Sub FabGutterMain()
If Range("B7").Value 0 Then EndCaps.Enabled = True
GutterOptions.Show

it keeps giving me an error saying "Object Required".
Help!



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Referencing check box names in VBE

Thanks a million! I figured it was simple, but being my first time I was
stumped.

"Rowan Drummond" wrote:

You need to qualify the reference to EndCaps eg:

Sub FabGutterMain()
If Range("B7").Value 0 Then _
GutterOptions.EndCaps.Enabled = True
GutterOptions.Show
End Sub

Hope this helps
Rowan

jweasl wrote:
My checkbox's NAME value is EndCaps
By default it's ENABLED value is set to false. When i load my userform, if
cell b70, i want the enabled value to switch to true.
Here's what I've been trying.... don't laugh, i'm still new :-P
GutterOptions is my userform

Sub FabGutterMain()
If Range("B7").Value 0 Then EndCaps.Enabled = True
GutterOptions.Show

it keeps giving me an error saying "Object Required".
Help!


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default Referencing check box names in VBE

You're welcome.

jweasl wrote:
Thanks a million! I figured it was simple, but being my first time I was
stumped.

"Rowan Drummond" wrote:


You need to qualify the reference to EndCaps eg:

Sub FabGutterMain()
If Range("B7").Value 0 Then _
GutterOptions.EndCaps.Enabled = True
GutterOptions.Show
End Sub

Hope this helps
Rowan

jweasl wrote:

My checkbox's NAME value is EndCaps
By default it's ENABLED value is set to false. When i load my userform, if
cell b70, i want the enabled value to switch to true.
Here's what I've been trying.... don't laugh, i'm still new :-P
GutterOptions is my userform

Sub FabGutterMain()
If Range("B7").Value 0 Then EndCaps.Enabled = True
GutterOptions.Show

it keeps giving me an error saying "Object Required".
Help!


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
Referencing Checkbox Names Chad Excel Worksheet Functions 1 July 18th 08 11:28 PM
Can I check names in one list agains names in another in excel? John@Hospice of Hope Excel Discussion (Misc queries) 1 August 22nd 06 09:24 AM
Referencing Sheet Names Stuart Grant New Users to Excel 1 October 4th 05 03:43 PM
Referencing worksheet names Rich Hayes Excel Worksheet Functions 3 August 25th 05 08:47 PM
Referencing cells containing tab names? nate_a Excel Worksheet Functions 2 July 19th 05 06:42 PM


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