Hi There,
I'm newby so please forgive my stupid questions.
I got this code from internet (maybe from this site) which works perfect in PERSONAL.XLSB.
My intention is to use GENERAL for all open excel file where PERSONAL.XLSB contain this code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
Select Case Target.Interior.ColorIndex
Case xlNone, 3: Target.Interior.ColorIndex = 4
Case Else: Target.Interior.ColorIndex = 3
End Select
End Sub
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
Target.Interior.ColorIndex = xlNone
End Sub
Within Excel object in --> Sheet1(Sheet1)
How can I setup this to be usable as running macro for any open workbook?
Step by step instruction would be highly appreciated!
Thanks in advance!
I'm newby so please forgive my stupid questions.
I got this code from internet (maybe from this site) which works perfect in PERSONAL.XLSB.
My intention is to use GENERAL for all open excel file where PERSONAL.XLSB contain this code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
Select Case Target.Interior.ColorIndex
Case xlNone, 3: Target.Interior.ColorIndex = 4
Case Else: Target.Interior.ColorIndex = 3
End Select
End Sub
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
Target.Interior.ColorIndex = xlNone
End Sub
Within Excel object in --> Sheet1(Sheet1)
How can I setup this to be usable as running macro for any open workbook?
Step by step instruction would be highly appreciated!
Thanks in advance!