Hi There,
I have a fairly lengthy macro that is split across many modules. It was running fine but all of a sudden the macro skips several lines of code and ends itself. I have checked my code and there is no obvious reason for it to do this.
My Code always drops to the end of the sub at the following point:
Public Sub Change_Main_Graph()
Set My8thRng = Range("PLAT_Ins_Penetration"
Set My8thName = Range("PLAT"
Populate_Multi_Stacked_Graphs ' Populate the graph
Public Sub Populate_Multi_Stacked_Graphs()
DoEvents
Img_On ' Turn the key labels on
Public Sub Img_On
ImgKey.Visible = True ' THE CODE STOPS HERE ?????????
Set Key = Array(Image5, Image6, Image7,
Image8,Image9,Image10, Image11, Image12)
ETC.......
Does anyone have ideas on why this stops the code. Any help would be greatly appreciated ?
Cheers
I have a fairly lengthy macro that is split across many modules. It was running fine but all of a sudden the macro skips several lines of code and ends itself. I have checked my code and there is no obvious reason for it to do this.
My Code always drops to the end of the sub at the following point:
Public Sub Change_Main_Graph()
Set My8thRng = Range("PLAT_Ins_Penetration"
Set My8thName = Range("PLAT"
Populate_Multi_Stacked_Graphs ' Populate the graph
Public Sub Populate_Multi_Stacked_Graphs()
DoEvents
Img_On ' Turn the key labels on
Public Sub Img_On
ImgKey.Visible = True ' THE CODE STOPS HERE ?????????
Set Key = Array(Image5, Image6, Image7,
Image8,Image9,Image10, Image11, Image12)
ETC.......
Does anyone have ideas on why this stops the code. Any help would be greatly appreciated ?
Cheers