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

Hello,

I am building a VBA statement in which I want to unload a couple of
CheckBoxes. Can someone tell me which code to use?

Thanks a lot for your help!!!

Rgds,
Robert

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Unload CheckBox

Hi Robert,

could you be more specific?

Regards,
Ivan

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Unload CheckBox

Hi Ivan,

I am making a sheet to manage a company's stock. In a particular sheet
I have put a couple of Checkboxes (the square ones in which you can put
a "V" ;-)) that indicate if an item is received or not. What the
current statement does is it copies the # of units received and adds it
to the number of items already in stock (I linked a formula that grabes
the # of ordered items when the Checkbox is active). To prevent that
the statement keeps adding units I want to incorporate a statement that
automatically deactivates the checkbox.

Hope that you can make something out of it!;-)

Thanks a lot for your help!!

Rgds,
Robert

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Unload CheckBox

Hi Robert,

you may need something like:

activesheet.checkbox1.enabled=false (or
ActiveSheet.OLEObjects("CheckBox1").Object.enabled = false) 'disables
checkbox

or
ActiveSheet.Shapes("CheckBox1").delete (or
ActiveSheet.OLEObjects("CheckBox1").delete) 'deletes checkbox

I hope it helps.

Regards,
Ivan

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Unload CheckBox

Try the code in this link

http://groups.google.com.au/group/mi...f 9d46fb4dd4d


Cheers Christian



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Unload CheckBox

Hi Ivan,

Thanks for the info.
But when I add your statement the Checkbox turns grey after running the
macro and I can not modity it anymore. The only things that needs to be
done is unchecking the checkbox.
Hope you know a statement for that.

Rgds,
Robert

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Unload CheckBox

Hi Robert,

sure.

By "I want to incorporate a statement that automatically deactivates
the checkbox" I understood that you want to disable the checkbox. For
unchecking use:

activesheet.checkbox1.value=false (or
ActiveSheet.OLEObjects("CheckBox1").Object.value = false) 'unchecks
checkbox

Regards,
Ivan

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
Unload an addin Thierry Paradis Excel Programming 2 March 11th 06 09:44 AM
unload an add-in from an Macro lang0477[_2_] Excel Programming 4 June 3rd 05 03:54 AM
form won't unload inquirer Excel Programming 1 May 26th 04 09:55 AM
Unload Me Chip Pearson Excel Programming 0 September 5th 03 12:56 AM
Form Unload Khai[_2_] Excel Programming 0 August 4th 03 09:28 PM


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