I have tried to write code to export a range A1:U25 on sheet Sales 850105 as a .xls file
Howveer, when exported, it contains the the entire used range for eg A1:AB25
It would be appreciated if sommeone could kindly amend my code
Howveer, when exported, it contains the the entire used range for eg A1:AB25
It would be appreciated if sommeone could kindly amend my code
Code:
Sub Export_Sales850105()
Application.ScreenUpdating = False
Sheets(Array("Sales 850105")).Copy
Worksheets(1).Range("A1:U25") = Worksheets(1).Range("A1:U25").Value2
Worksheets(1).Cells.Hyperlinks.Delete
ActiveWorkbook.SaveAs ThisWorkbook.Path & "\" & "Sales 850105 Upload" & ".xls", 56
ActiveWorkbook.Close SaveChanges:=False
Application.ScreenUpdating = True
End Sub