Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Error hiding a combobox with a checkbox

I could use a little help getting around the error I am getting when
trying to hide a combobox with a checkbox. Basically, what I am trying

to do is unhide/hide rows and the rows have comboboxes in them. If I
choose a checkbox, and still have the focus set in the combobox I am
attempting to hide, I get an error. If I choose other checkboxes, and
then come back to that checkbox, I do not get the error. I will not be

the only one using this worksheet and I really need a work around. Any

help would be greatly appreciated.

The Run-time I am getting is '-2147417848 (80010108)' Method 'Hidden'
of object 'Range' failed.


When I try and debug I cannot get past the line that hides the row with

the combobox. From the worksheet I can see the proper rows hidden, but

it is somehow getting caught up. I have tried to use On Error Resume
Next with no avail. I have also tried to just add code to select a
Range in a cell nearby to get the focus out of the checkbox and that
will not work either.

I am getting the checkbox and combobox from the control toolbox.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Error hiding a combobox with a checkbox

Post your code for more info

--
Cheers
Nigel



wrote in message
ups.com...
I could use a little help getting around the error I am getting when
trying to hide a combobox with a checkbox. Basically, what I am trying

to do is unhide/hide rows and the rows have comboboxes in them. If I
choose a checkbox, and still have the focus set in the combobox I am
attempting to hide, I get an error. If I choose other checkboxes, and
then come back to that checkbox, I do not get the error. I will not be

the only one using this worksheet and I really need a work around. Any

help would be greatly appreciated.

The Run-time I am getting is '-2147417848 (80010108)' Method 'Hidden'
of object 'Range' failed.


When I try and debug I cannot get past the line that hides the row with

the combobox. From the worksheet I can see the proper rows hidden, but

it is somehow getting caught up. I have tried to use On Error Resume
Next with no avail. I have also tried to just add code to select a
Range in a cell nearby to get the focus out of the checkbox and that
will not work either.

I am getting the checkbox and combobox from the control toolbox.



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
Hiding a ComboBox with a Checkbox AWeb Excel Worksheet Functions 2 September 15th 06 01:30 PM
Setting Default of Checkbox based on value of combobox Lost![_5_] Excel Programming 1 June 9th 05 07:35 PM
hiding rows with checkbox Qaspec Excel Programming 6 May 26th 05 05:37 PM
Simple hiding columns with vba does not work with a checkbox Brian Excel Programming 3 January 9th 04 10:39 PM
CheckBox controling a ComboBox Dillonstar Excel Programming 3 October 23rd 03 05:56 PM


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