I am trying to create a macro with parameters:
Sub FormatColumns(Optional fUnderscore As Boolean = False)
...
End Sub
Once the argument is added, the macro name disappears from the macro selection screen once I hit alt + F8. When I take the argument out, the macro is there. I don't want to create a duplicate macro when I could set the Boolean variable to optional.
Thanks,
Programmer Novice
Sub FormatColumns(Optional fUnderscore As Boolean = False)
...
End Sub
Once the argument is added, the macro name disappears from the macro selection screen once I hit alt + F8. When I take the argument out, the macro is there. I don't want to create a duplicate macro when I could set the Boolean variable to optional.
Thanks,
Programmer Novice