biswajit.becs
New Member
- Joined
- Jun 22, 2011
- Messages
- 2
hi,
i have created a module in personal.xlsb.i want it to autometically run when excel starts.
but when opening a workbook getting runtime error
how to get rid of this?
thanks for help in advance
i have created a module in personal.xlsb.i want it to autometically run when excel starts.
Code:
Private Sub Auto_Open()
Dim sh As Worksheet
For Each sh In [COLOR="Blue"]ActiveWorkbook[/COLOR].Worksheets
sh.Cells.Replace What:="aaa", Replacement:="xxx"
Next
End Sub
how to get rid of this?
thanks for help in advance