Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Playing a macro under Excel do not work

Status
Not open for further replies.

AKarim

Technical User
Mar 20, 2000
41
EU
Hi,<br>I've been trying this macro on excel<br>Sub Macro1()<br>'<br>' Macro1 Macro<br><br>&nbsp;&nbsp;&nbsp;&nbsp;ActiveSheet.Shapes(&quot;Oval 1&quot;).Fill.ForeColor.SchemeColor = 13<br>&nbsp;&nbsp;&nbsp;&nbsp;MsgBox &quot;Invisible&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;ActiveSheet.Shapes(&quot;Oval 1&quot;).Visible = False<br>&nbsp;&nbsp;&nbsp;&nbsp;MsgBox &quot;Visible&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;ActiveSheet.Shapes(&quot;Oval 1&quot;).Visible = True<br>&nbsp;&nbsp;&nbsp;&nbsp;MsgBox &quot;Et TOC c'est magique HIHIHIHIHIHIHI !!!!!!!&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;ActiveSheet.Shapes(&quot;Oval 1&quot;).Fill.ForeColor.SchemeColor = 56<br><br>End Sub<br>It works when I try it under VB Editor.<br>When I close vb and run it under excel the message boxes appears but the shape do not get/or not visible, and don't change color either !<br>Can someone tell me why ?<br>Thanxs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top