Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
referring a worksheet | Excel Worksheet Functions | |||
referring to a chart without using its name?? | Excel Programming | |||
Syntax when referring to self | Excel Programming | |||
Unable to remove Sheet objects in the Microsoft Excel Objects | Excel Programming | |||
Referring Date in VBA | Excel Programming |