Hi,
I have a UserForm with text boxes. When data is typed into a textbox, it is inserted into a cell on "Cost Analysis Tab" with this code:
Private Sub TextBox4_AfterUpdate()
Worksheets("Cost Analysis").Range("A1").Value = UCase(TextBox4.Value)
End Sub
I have a Connection Name: "Query from RBIT_vmfg" That looks at A1 on "Cost Analysis" tab.
The query refreshes as soon as I close the UserForm, but i would like it to refresh after the information has been entered into A1.
I have tried:
Sheets("Cost Analysis").Select
ThisWorkbook.RefreshAll
ActiveWorkbook.RefreshAll
DoEvents
Nothing has worked for me. Please let me know if there is a way that the query can refresh/update once the information has been put into TextBox4 or cell A1 in Cost Analysis tab.
Thanks.
I have a UserForm with text boxes. When data is typed into a textbox, it is inserted into a cell on "Cost Analysis Tab" with this code:
Private Sub TextBox4_AfterUpdate()
Worksheets("Cost Analysis").Range("A1").Value = UCase(TextBox4.Value)
End Sub
I have a Connection Name: "Query from RBIT_vmfg" That looks at A1 on "Cost Analysis" tab.
The query refreshes as soon as I close the UserForm, but i would like it to refresh after the information has been entered into A1.
I have tried:
Sheets("Cost Analysis").Select
ThisWorkbook.RefreshAll
ActiveWorkbook.RefreshAll
DoEvents
Nothing has worked for me. Please let me know if there is a way that the query can refresh/update once the information has been put into TextBox4 or cell A1 in Cost Analysis tab.
Thanks.