Dim curWks As Worksheet
Dim templWks As Worksheet
Dim rngToCopy As Range
Set curWks = ActiveSheet
With curWks
Set rngToCopy = .Range("A1:AX65453", .Range("a1").End(xlToRight).End(xlDown))
End With
Workbooks.Open _
fileName:="C:\Program Files\enterprise\Customer Copy\Customer_Template.xlsx"
If ActiveSheet.Name = "Project Data" Then
Else
Sheets("project Data").Activate
End If
Set templWks = ActiveSheet
templWks.Cells.Select
templWks.Cells.Clear
' APPENDS DATA
rngToCopy.Copy _
Destination:=templWks.Range("A65453").End(xlUp)
' after i copy data i need to insert a column at Column P
Workbooks("Customer_Template.xlsx").Close SaveChanges:=True
Application.CutCopyMode = False
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE