View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Desert Piranha[_97_] Desert Piranha[_97_] is offline
external usenet poster
 
Posts: 1
Default OnAction macro in another wb


Dave Peterson Wrote:
Untested.

Maybe have your .onaction point to a macro that's in ThisWorkbook.

..onaction = "'" & thisworkbook.name & "'!RunATest"

Then RunATest could do the real work based on the active workbook's
name.

Option Explicit
sub RunATest()
application.run "'" & activeworkbook.name & "'!ATest"
end subHi Dave,


Very masterfull, works great. Thx Very much.


--
Desert Piranha


------------------------------------------------------------------------
Desert Piranha's Profile: http://www.excelforum.com/member.php...o&userid=28934
View this thread: http://www.excelforum.com/showthread...hreadid=567643