Hi,
I have some really simple code which works on the first step, but I cant recall on the second to put it back again. I have only started messing about with control active x boxes, which are pretty cool what you can do with them, and I get the first part to work, but trying to get them back to the original colours at the program start is where I cam unstuck.
So
Pic 1, the text Box is Blue the Parked report control button is blue
Pic 2, the program ran, text = Red, Control box = green
but when the program has finished I would like Pic 2 to go back to Pic 1.
so to get it from Pic 1 to Pic 2 it starts with this, and works great.
Private Sub ParkedPagerReportB2_Click()
FunctionSelectDisplay.Text = "Parked Report In Progress...."
FunctionSelectDisplay.BackColor = RGB(204, 0, 0)
ParkedPagerReportB2.BackColor = RGB(0, 255, 0)
'Call Parked_Report ' on click start the Parked Report
End Sub
Sub parked Report ()
all my other code
*** NOW IM Stuck
end sub.
***
I tried to call the program back but under a different name, I tried SUB, Private Sub, Public Sub, all end in Sub or Function Not Defined in the macro
I put the below back into sheet 9 (settings) but no difference.
Public Sub End_ParkReport()
FunctionSelectDisplay.Text = "Please Select Program...." ' update Digital Display
FunctionSelectDisplay.BackColor = RGB(51, 0, 153)
ParkedPagerReportB2.BackColor = RGB(0, 0, 153)
End Sub
The buttons are on a worksheet called sheet 9(settings) it doesnt seem to work if I put it in a Module, seems it has to sit inside the code bit of the worksheet.
I cant call back the original Private Sub ParkedPagerReportB2_Click() as this would just leave it in its current state, if it worked didnt test it.
so I have no idea how to get the same boxs to change two colours, 1 before the program is ran, and back again after.
Help would be highly appreciated. It would be a shame to scrap the idea because although it serves no really purpose, it does look kind of cool to have.
thanks for any help.
David.
I have some really simple code which works on the first step, but I cant recall on the second to put it back again. I have only started messing about with control active x boxes, which are pretty cool what you can do with them, and I get the first part to work, but trying to get them back to the original colours at the program start is where I cam unstuck.
So
Pic 1, the text Box is Blue the Parked report control button is blue
Pic 2, the program ran, text = Red, Control box = green
but when the program has finished I would like Pic 2 to go back to Pic 1.
so to get it from Pic 1 to Pic 2 it starts with this, and works great.
Private Sub ParkedPagerReportB2_Click()
FunctionSelectDisplay.Text = "Parked Report In Progress...."
FunctionSelectDisplay.BackColor = RGB(204, 0, 0)
ParkedPagerReportB2.BackColor = RGB(0, 255, 0)
'Call Parked_Report ' on click start the Parked Report
End Sub
Sub parked Report ()
all my other code
*** NOW IM Stuck
end sub.
***
I tried to call the program back but under a different name, I tried SUB, Private Sub, Public Sub, all end in Sub or Function Not Defined in the macro
I put the below back into sheet 9 (settings) but no difference.
Public Sub End_ParkReport()
FunctionSelectDisplay.Text = "Please Select Program...." ' update Digital Display
FunctionSelectDisplay.BackColor = RGB(51, 0, 153)
ParkedPagerReportB2.BackColor = RGB(0, 0, 153)
End Sub
The buttons are on a worksheet called sheet 9(settings) it doesnt seem to work if I put it in a Module, seems it has to sit inside the code bit of the worksheet.
I cant call back the original Private Sub ParkedPagerReportB2_Click() as this would just leave it in its current state, if it worked didnt test it.
so I have no idea how to get the same boxs to change two colours, 1 before the program is ran, and back again after.
Help would be highly appreciated. It would be a shame to scrap the idea because although it serves no really purpose, it does look kind of cool to have.
thanks for any help.
David.