View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
peter.thompson[_61_] peter.thompson[_61_] is offline
external usenet poster
 
Posts: 1
Default Calling a Macro from module


I have Public Sub Unlockbuttons() Macro recorded in a module.

How do I execute this macro from within code in a userform. I'm using
this code:

If Sheet6.Range("f49") = 0 And Sheet6.Range("f59").Text =
Sheet6.Range("f50").Text Then

'Here is where I need the code to execute the Unlockbuttons macro

Would appreciate any guideance
Cheers

Peter (Working my way through first VBA project)


--
peter.thompson
------------------------------------------------------------------------
peter.thompson's Profile: http://www.excelforum.com/member.php...o&userid=29686
View this thread: http://www.excelforum.com/showthread...hreadid=503579