Hi All,
In a bit of a bind, i have a simple excel user form which has a button that when clicked validates the data and then inserts this into a worksheet.
I have this part working fine.
However i now need this row of data to be inserted in the next blank row to a workbook located somewhere else on the network. I have come across the vba below but i am struggling with getting this function running after the validation.
Public Sub copy_wb()
Dim copy_from As Range
Dim copy_to As Range
Set copy_from = Workbooks("book1").Worksheets(1).UsedRange
Set copy_to = Workbooks("book2").Worksheets(1).Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
copy_from.Copy Destination:=copy_to
Application.CutCopyMode = False
End Sub
Can anyone help me cheers in advance.
Kind regards
Me
Bookmarks