macro change cell color - opens original template (unintended)
I created a template for a workschedule. In that template I made a macro, that changes the background color of selected cells. (user selected cells).
The user is supposed to save the template as a regular excel workbook with activated macros.
So far so good. When using the "colorchange macro", the cells change color correct, BUT at the same time my original template opens as well.
The template has other macros in it as well.
So, how do i prevent the template to open, as I only want the active workbook to be affected by my macro?
Here's the code Ive used:
Code:
Sub fillcolorblue()
Selection.Interior.Color = RGB(204, 204, 255)
End Sub