VBA Execel Macro & Check Box help

  • Thread starter Thread starter Aversin
  • Start date Start date
A

Aversin

I recorded a macro that copys one cell and pastes it to another cell o
another sheet. Then I assigned it to a check box. It works just fine
but what I would like is:
How do I stop the macro from running if I uncheck the box
 
Sub flip1()
'
' flip1 Macro
' Macro recorded 4/13/2004 by
'

'
Sheets("Comments").Select
Range("B2:M3").Select
End Sub

This code is for check box 10.
I'm new to all of this so please bare with me
 
Well, that's the Subroutine that's being called, but where is it bein
called from? If it's in the checkbox itself you could alter that lik
this:

If CheckBox10.Value = True Then
flip1()
End If

To do what you want you need to use the IF statement, but where to pu
it exactly is the only question. - Piku
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top