Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Kris in Kenya
 
Posts: n/a
Default Check Box reference name

When I create a checkbox in multiple worksheets within the same document,
excel assigns different references to it - this has as a consequence I can
not assign the same workbook macro's (it inetract with 3 macro's) to it as it
has another reference and I would have to write as many macro's as I have
worksheets (30!) while in fact the function is the same - I cannot find any
way to chanjge the excel assigned reference
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Check Box reference name

If you used a checkbox from the Forms toolbar, you'll be able to right click on
each and assign the same macro to each.

Kris in Kenya wrote:

When I create a checkbox in multiple worksheets within the same document,
excel assigns different references to it - this has as a consequence I can
not assign the same workbook macro's (it inetract with 3 macro's) to it as it
has another reference and I would have to write as many macro's as I have
worksheets (30!) while in fact the function is the same - I cannot find any
way to chanjge the excel assigned reference


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Kris in Kenya
 
Posts: n/a
Default Check Box reference name

Hi Dave, thanks but that is not the issue, of course I can assign the macro
to any check_box - but since the macro's assigned and other macro's assigned
to radio_buttons all use the check_box in their VBA-code the check_boxes must
have the same reference - I did find an intermediate solution as follows:
In one of the sheets the check_box with the highest reference had
Check_Box_817 as a reference, I just went in all the other sheets where the
references ranged from 255 to 628 and in each of them copy/pasted the
original one as many times as needed to increase the reference to the same
817 - after a lot of copy/pasting (luckily you can group the pasted boxes
together so it goes faster) I ended up with having all my boxes having 817 as
a reference in each sheet - after which I could use that reference in the
macro's thus all pointing to an existing box in each sheet.

But of course a simple editing of the reference number would be more
convenient :-)

"Dave Peterson" wrote:

If you used a checkbox from the Forms toolbar, you'll be able to right click on
each and assign the same macro to each.

Kris in Kenya wrote:

When I create a checkbox in multiple worksheets within the same document,
excel assigns different references to it - this has as a consequence I can
not assign the same workbook macro's (it inetract with 3 macro's) to it as it
has another reference and I would have to write as many macro's as I have
worksheets (30!) while in fact the function is the same - I cannot find any
way to chanjge the excel assigned reference


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Check Box reference name

If you select the checkbox, you can change its name by typing the new name in
the NameBox (to the left of the FormulaBar). (Remember to hit enter.)



Kris in Kenya wrote:

Hi Dave, thanks but that is not the issue, of course I can assign the macro
to any check_box - but since the macro's assigned and other macro's assigned
to radio_buttons all use the check_box in their VBA-code the check_boxes must
have the same reference - I did find an intermediate solution as follows:
In one of the sheets the check_box with the highest reference had
Check_Box_817 as a reference, I just went in all the other sheets where the
references ranged from 255 to 628 and in each of them copy/pasted the
original one as many times as needed to increase the reference to the same
817 - after a lot of copy/pasting (luckily you can group the pasted boxes
together so it goes faster) I ended up with having all my boxes having 817 as
a reference in each sheet - after which I could use that reference in the
macro's thus all pointing to an existing box in each sheet.

But of course a simple editing of the reference number would be more
convenient :-)

"Dave Peterson" wrote:

If you used a checkbox from the Forms toolbar, you'll be able to right click on
each and assign the same macro to each.

Kris in Kenya wrote:

When I create a checkbox in multiple worksheets within the same document,
excel assigns different references to it - this has as a consequence I can
not assign the same workbook macro's (it inetract with 3 macro's) to it as it
has another reference and I would have to write as many macro's as I have
worksheets (30!) while in fact the function is the same - I cannot find any
way to chanjge the excel assigned reference


--

Dave Peterson


--

Dave Peterson
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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
... Can I set Spell Check to automatically check my spelling ... Dr. Darrell Setting up and Configuration of Excel 0 March 21st 06 08:26 PM
Visual basic Check Box and the IF formula dingo33 Excel Discussion (Misc queries) 3 February 15th 06 04:57 PM
check if reference exists, then return its value or return 0 doudou Excel Worksheet Functions 1 June 4th 05 09:17 PM
How do I reference multiple rows Awetronics Excel Worksheet Functions 1 November 4th 04 12:37 AM


All times are GMT +1. The time now is 11:00 PM.

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"