Claire Jackson
Board Regular
- Joined
- Jun 30, 2020
- Messages
- 74
- Office Version
- 2016
- Platform
- Windows
I had an excel workbook which had a userform in it which was working perfectly until I pointed to a new datafile. Now everything works ie bringing static data into the form but it's not populating the cells back into the excel workbook? I've attached both files for you to check what I'm doing wrong..
This is the code:
This is the code:
Code:
Private Sub Cmd_Access_Click()
Dim Job_Name As Variant
Dim Cur_Comp As Date
Dim ws As Worksheet
Dim What_Stage As String
Set ws = Worksheets("Sheet1")
With ws
.Range("B15").Value = Txt_Rev_Comp_Date.Text
.Range("B17").Value = Txt_Delay_Reason.Text
.Range("B19").Value = Txt_Cur_Percentage.Text
.Range("A23").Value = Txt_Job_Update.Text
.Range("A33").Value = Txt_Asbestos.Text
.Range("A37").Value = Txt_HS_Issues.Text
.Range("A41").Value = Txt_Security.Text
.Range("A47").Value = Txt_Further_Info.Text
.Range("A51").Value = Txt_Complaint.Text
.Range("H1").Value = Txt_Job_Ref.Text
Last edited by a moderator: