Hello,
I have attempted to create a VBA which takes data from certain cells on a form and copies them into specified cells in another sheet.
The intention is that the code will find the next empty cell of each column.
My problem is that the code appears to just overwrite the cells, it works well the first time and then after that I see issues.
Thanks
I have attempted to create a VBA which takes data from certain cells on a form and copies them into specified cells in another sheet.
The intention is that the code will find the next empty cell of each column.
My problem is that the code appears to just overwrite the cells, it works well the first time and then after that I see issues.
Code:
Sub exportdata()'
' exportdata Macro
'
Range("C4").Select
Selection.Copy
Windows("Customer Database.xlsx").Activate
Range("A1").End(xlDown).Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
Windows("Client Service Form Template.xlsm").Activate
Range("H6").Select
Application.CutCopyMode = False
Selection.Copy
Windows("Customer Database.xlsx").Activate
Range("B1").End(xlDown).Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
Windows("Client Service Form Template.xlsm").Activate
End Sub
Thanks