Hi Again,
Can anyone help me with copying/pasting using a userform.
I have a master spreadsheet that I'm copying data from an pasting to a different workbook. I've got this bit working fine but once the pasting over has happened, I need to populate column "A" from a textbox value all the way down until the last used cell in column "B"
This is what I'm using to copy and paste data across.
Can anyone help me with copying/pasting using a userform.
I have a master spreadsheet that I'm copying data from an pasting to a different workbook. I've got this bit working fine but once the pasting over has happened, I need to populate column "A" from a textbox value all the way down until the last used cell in column "B"
This is what I'm using to copy and paste data across.
Code:
With wsSource.Range("A2:D" & wsSource.Range("A" & Rows.Count).End(xlUp).Row) .AutoFilter Field:=1, Criteria1:=txtFileNumber.Value
.Offset(1).Columns(1).SpecialCells(xlVisible).Copy
Range("A" & Rows.Count).End(xlUp).Offset(1, 1).PasteSpecial xlPasteValues
.Offset(1).Columns(4).SpecialCells(xlVisible).Copy
Range("A" & Rows.Count).End(xlUp).Offset(1, 2).PasteSpecial xlPasteValues
.Offset(1).Columns(5).SpecialCells(xlVisible).Copy
Range("A" & Rows.Count).End(xlUp).Offset(1, 3).PasteSpecial xlPasteValues
Range("A" & Rows.Count).End(xlUp).Offset(1) = txtBoxNumber.Value