i have a sequence of userforms used to input various codes into field. That all work great and go from flawlessly, until lately. I added vbmodeless to make cells selectable on one of the forms (everything still worked great. I then added a hyperlink to that same userform (opens up a different spreadsheet for ref.) Now when I go from one userform to the one that has the hyperlink (and vbmodeless) I have to select the userform/textbox with the mouse (its lookslike something else is selected) where i didnt have to do that before.
Hopefully this is explained well enough.
(this is just to show how the one before ".show"s)
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Sheets("Data Sheet").Select
Range("Letdown").Value = TextBox1.Value
Application.ScreenUpdating = True
Unload Me
FTIRThickness.Show vbModeless
End Sub
(this is the one i am trouble with)
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Windows("Quality Control Data Sheet (BETA).xls").Activate
Sheets("Data Sheet").Select
Range("FTIRThickness").Value = TextBox1.Value
Application.ScreenUpdating = True
Unload Me
Packaging.Show
End Sub
Hopefully this is explained well enough.
(this is just to show how the one before ".show"s)
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Sheets("Data Sheet").Select
Range("Letdown").Value = TextBox1.Value
Application.ScreenUpdating = True
Unload Me
FTIRThickness.Show vbModeless
End Sub
(this is the one i am trouble with)
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Windows("Quality Control Data Sheet (BETA).xls").Activate
Sheets("Data Sheet").Select
Range("FTIRThickness").Value = TextBox1.Value
Application.ScreenUpdating = True
Unload Me
Packaging.Show
End Sub