Hi there,
Hope someone will be able to assist me
I have a button that will copy one sheet and then create a new sheet with the copied content. Then the userform will also popup
The userform then needs to add the content to the newly created sheet. I don't seem to get it to work
Here is what I have so long
Sub copySheetSameWorkbook()
Dim sheetToCopy As Worksheet
Set sheetToCopy = Worksheets("Sheet1")
sheetToCopy.Copy After:=sheetToCopy
frmInput.Show
End Sub
Private Sub cmdAdd_Click()
With Sheets("sheetToCopy")
.Range("B1").Value = txtFamily.txt
.Range("H2").Value = Me.txtThreshold.txt
.Range("B2").Value = Me.txtM1.txt
.Range("C2").Value = Me.txtM2.txt
.Range("D2").Value = Me.txtM3.txt
.Range("E2").Value = Me.txtM4.txt
.Range("F2").Value = Me.txtM5.txt
frmInput.Close
End Sub
Also is there a way to force the client to rename the worksheet
Regards
Hope someone will be able to assist me
I have a button that will copy one sheet and then create a new sheet with the copied content. Then the userform will also popup
The userform then needs to add the content to the newly created sheet. I don't seem to get it to work
Here is what I have so long
Sub copySheetSameWorkbook()
Dim sheetToCopy As Worksheet
Set sheetToCopy = Worksheets("Sheet1")
sheetToCopy.Copy After:=sheetToCopy
frmInput.Show
End Sub
Private Sub cmdAdd_Click()
With Sheets("sheetToCopy")
.Range("B1").Value = txtFamily.txt
.Range("H2").Value = Me.txtThreshold.txt
.Range("B2").Value = Me.txtM1.txt
.Range("C2").Value = Me.txtM2.txt
.Range("D2").Value = Me.txtM3.txt
.Range("E2").Value = Me.txtM4.txt
.Range("F2").Value = Me.txtM5.txt
frmInput.Close
End Sub
Also is there a way to force the client to rename the worksheet
Regards