View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ji Wenke Ji Wenke is offline
external usenet poster
 
Posts: 1
Default How to run VBA macro when the workbook is open?

Hi
I write a Macro in VBA IDE module 1 as:

sub Selection()
xxxxxxx
end sub

If I want EXCEL to run it when this workbook is open,how
can I do that by VBA for that ?(Any sample code available?)


Thanks!

BRs
Ji