Morning Combo,
I think I get the drift, but, would appreciate some advice in laymans language.
My situation is that I have about ten workbooks. In each workbook there is a particular sheet for which I have designed the macro. The sheets are all the same in design but cover different areas of the business. Basically, the macros are designed to insert fill colors into certain cells.
What I wanted to do was have these two macros in all workbooks and be able to run them using the same Alt + no matter what workbook I am working on.
If I have more than one workbook open I sometimes get the Pop up message "400" (with red cross).
This is the code I have built:
Sub dwacolours()
Dim rnga As Range
Set rnga = Range(ActiveCell, ActiveCell.Offset(0, 16))
rnga.Select
rnga.Interior.Color = 16776960
ActiveCell.Offset(0, 11).Select
Selection.Interior.Color = vbYellow
ActiveCell.Offset(0, 1).Select
Selection.Interior.Color = vbYellow
End Sub
Sub completegreen()
Dim rnga As Range
Set rnga = Range(ActiveCell, ActiveCell.Offset(0, 16))
rnga.Select
rnga.Interior.Color = vbGreen
ActiveCell.Offset(0, 16).Select
End Sub
The workbooks are accessed on a shared drive and there are normally two users. One user tends to keep the majority of the books open.
If you think its possible to do what I have explained, I would really appreciate a step by step instruction.
This is my first attempt to have a real dab at VBA so bear with me.
Regards