probleme macro vba (xl 2002)

M

mymye

bonjour a tous,
pourriez-vous m'indiquer la syntaxe d'une simple macro
permettant de lancer ou non l'impression une feuille a
partir d'une case a cocher.
par exemple si VRAI = imprimer la feuille
si = FAUX passer a la case a cocher suivante, etc...

Merci a tous,

Xav
 
B

Bob Phillips

MyMye,

Supposant je comprends la question

For Each chk In ActiveSheet.CheckBoxes
If chk.Value = xlOn Then
Worksheets(chk.Caption).PrintOut
End If
Next chk


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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

Top