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

I have a checkbox on sheet1, which I plan to give the user an option to
whether or not to hide some columns beforePrint. How to I refer this
checkbox object to be used in the Workbook_BeforePrint event?

TIA
Mike


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Referring Objects

sheet1.CheckBox1.Value

where Sheet1 is the codename of the sheet with the checkbox or

Worksheets("Sheet1").Checkbox1.value

where Sheet1 is the tab name of the sheet with the checkbox.

This is for a checkbox from the control toolbox toolbar.

for a checkbox from the forms toolbar

If Worksheets("sheet1").Checkboxes("Check Box 1").Value = xlOn then

--
Regards,
Tom Ogilvy



"Squid" wrote in message
news:PNVkd.601909$8_6.422495@attbi_s04...
I have a checkbox on sheet1, which I plan to give the user an option to
whether or not to hide some columns beforePrint. How to I refer this
checkbox object to be used in the Workbook_BeforePrint event?

TIA
Mike




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
referring a worksheet lazmanyak Excel Worksheet Functions 1 July 23rd 05 02:55 PM
referring to a chart without using its name?? neowok[_75_] Excel Programming 2 September 17th 04 01:20 PM
Syntax when referring to self Jack Schitt Excel Programming 3 September 2nd 04 02:04 AM
Unable to remove Sheet objects in the Microsoft Excel Objects Adrian[_7_] Excel Programming 1 August 26th 04 10:49 PM
Referring Date in VBA anupam[_3_] Excel Programming 1 August 26th 04 01:10 PM


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