PC Review


Reply
Thread Tools Rate Thread

about check boxe

 
 
pmss
Guest
Posts: n/a
 
      20th Dec 2007
i am doing some calculations using Macros. I have problem with check boxes. I
want to link with some cells so that i can put my input parameters there for
futher calculation. when i checked the box, link cells must appear and
viceversa.
Thanks
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      20th Dec 2007
Check boxes have a property Linked cell where the links cell will havvew a
value True or False. You can set the lijnked cell either through the
worksheet or VBA.

To set the link cell on the worksheet you need to get into design mode and
change the check box property.


1) view Menu - tool Bars - Control Tool box
2) On toolbar press triangle (Design Mode)
3) Press Property on tool bar (next to triangle).
4) Press Check box. On properrty window set LinkCell to a cell like A1.
5) Exit Design mode by pressing triangle again. Now when you check and
uncheck the check box the linked cell will automatically change.

"pmss" wrote:

> i am doing some calculations using Macros. I have problem with check boxes. I
> want to link with some cells so that i can put my input parameters there for
> futher calculation. when i checked the box, link cells must appear and
> viceversa.
> Thanks

 
Reply With Quote
 
pmss
Guest
Posts: n/a
 
      20th Dec 2007
Thanks
Actually i need to have some cells appear when i checked the box so that i
can put my values in the appeared cell.

"pmss" wrote:

> i am doing some calculations using Macros. I have problem with check boxes. I
> want to link with some cells so that i can put my input parameters there for
> futher calculation. when i checked the box, link cells must appear and
> viceversa.
> Thanks

 
Reply With Quote
 
Joel
Guest
Posts: n/a
 
      20th Dec 2007
If you go into design mode and double click the check box it will create a
click macro. Put macro code into the click code to make the cells appear or
disappear.

"pmss" wrote:

> Thanks
> Actually i need to have some cells appear when i checked the box so that i
> can put my values in the appeared cell.
>
> "pmss" wrote:
>
> > i am doing some calculations using Macros. I have problem with check boxes. I
> > want to link with some cells so that i can put my input parameters there for
> > futher calculation. when i checked the box, link cells must appear and
> > viceversa.
> > Thanks

 
Reply With Quote
 
pmss
Guest
Posts: n/a
 
      20th Dec 2007
Can you please write me a micro code that will help me to do so. I am not
expert on using macros.

"Joel" wrote:

> If you go into design mode and double click the check box it will create a
> click macro. Put macro code into the click code to make the cells appear or
> disappear.
>
> "pmss" wrote:
>
> > Thanks
> > Actually i need to have some cells appear when i checked the box so that i
> > can put my values in the appeared cell.
> >
> > "pmss" wrote:
> >
> > > i am doing some calculations using Macros. I have problem with check boxes. I
> > > want to link with some cells so that i can put my input parameters there for
> > > futher calculation. when i checked the box, link cells must appear and
> > > viceversa.
> > > Thanks

 
Reply With Quote
 
Joel
Guest
Posts: n/a
 
      20th Dec 2007
Private Sub CheckBox1_Click()

If CheckBox1.Value = True Then
Columns("D").Hidden = True
Else
Columns("D").Hidden = False

End If

End Sub


"pmss" wrote:

> Can you please write me a micro code that will help me to do so. I am not
> expert on using macros.
>
> "Joel" wrote:
>
> > If you go into design mode and double click the check box it will create a
> > click macro. Put macro code into the click code to make the cells appear or
> > disappear.
> >
> > "pmss" wrote:
> >
> > > Thanks
> > > Actually i need to have some cells appear when i checked the box so that i
> > > can put my values in the appeared cell.
> > >
> > > "pmss" wrote:
> > >
> > > > i am doing some calculations using Macros. I have problem with check boxes. I
> > > > want to link with some cells so that i can put my input parameters there for
> > > > futher calculation. when i checked the box, link cells must appear and
> > > > viceversa.
> > > > Thanks

 
Reply With Quote
 
pmss
Guest
Posts: n/a
 
      20th Dec 2007
thanks


"Joel" wrote:

> Private Sub CheckBox1_Click()
>
> If CheckBox1.Value = True Then
> Columns("D").Hidden = True
> Else
> Columns("D").Hidden = False
>
> End If
>
> End Sub
>
>
> "pmss" wrote:
>
> > Can you please write me a micro code that will help me to do so. I am not
> > expert on using macros.
> >
> > "Joel" wrote:
> >
> > > If you go into design mode and double click the check box it will create a
> > > click macro. Put macro code into the click code to make the cells appear or
> > > disappear.
> > >
> > > "pmss" wrote:
> > >
> > > > Thanks
> > > > Actually i need to have some cells appear when i checked the box so that i
> > > > can put my values in the appeared cell.
> > > >
> > > > "pmss" wrote:
> > > >
> > > > > i am doing some calculations using Macros. I have problem with check boxes. I
> > > > > want to link with some cells so that i can put my input parameters there for
> > > > > futher calculation. when i checked the box, link cells must appear and
> > > > > viceversa.
> > > > > Thanks

 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      24th Dec 2007
Your Click event code can be shortened to this...

Private Sub CheckBox1_Click()
Columns("D").Hidden = CheckBox1.Value
End Sub

Rick


"Joel" <(E-Mail Removed)> wrote in message
news:FC65BE06-0D42-4BF7-B106-(E-Mail Removed)...
> Private Sub CheckBox1_Click()
>
> If CheckBox1.Value = True Then
> Columns("D").Hidden = True
> Else
> Columns("D").Hidden = False
>
> End If
>
> End Sub
>
>
> "pmss" wrote:
>
>> Can you please write me a micro code that will help me to do so. I am not
>> expert on using macros.
>>
>> "Joel" wrote:
>>
>> > If you go into design mode and double click the check box it will
>> > create a
>> > click macro. Put macro code into the click code to make the cells
>> > appear or
>> > disappear.
>> >
>> > "pmss" wrote:
>> >
>> > > Thanks
>> > > Actually i need to have some cells appear when i checked the box so
>> > > that i
>> > > can put my values in the appeared cell.
>> > >
>> > > "pmss" wrote:
>> > >
>> > > > i am doing some calculations using Macros. I have problem with
>> > > > check boxes. I
>> > > > want to link with some cells so that i can put my input parameters
>> > > > there for
>> > > > futher calculation. when i checked the box, link cells must appear
>> > > > and
>> > > > viceversa.
>> > > > Thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Forms - any idea to apply radio button rather than check boxe How to detect collapsed task in vba? Microsoft Word Document Management 3 22nd Nov 2008 01:32 PM
Check boxe size =?Utf-8?B?TWVsaXNzYQ==?= Microsoft Excel Misc 1 3rd Oct 2007 04:38 PM
check boxe size MikeP Microsoft Access Forms 2 9th Jul 2004 05:23 PM
Boxe's with red X's Ed Christie Windows XP New Users 4 22nd Feb 2004 08:50 PM
Dialogue Boxe =?Utf-8?B?TGlub3U=?= Microsoft Excel Programming 1 24th Oct 2003 08:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:45 PM.