View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
PBG PBG is offline
external usenet poster
 
Posts: 5
Default Have VB Code "on" for all workbooks

I have the following code in my personal workbook. How can I get the VB code
to work in all workbooks or do I have to make an add-in?

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
Union(Target.EntireColumn, Target.EntireRow).Select
'Target.EntireRow.Select
Target.Activate
Application.EnableEvents = True
End Sub

Also, can you change the color?
Thanks