Hi
I have this macro and it copies and pastes to the new sheet but does not vopy new values into column Y and delete the zero values from the new sheet.
Any Ideas?
I have this macro and it copies and pastes to the new sheet but does not vopy new values into column Y and delete the zero values from the new sheet.
Any Ideas?
VBA Code:
Option Explicit
Sub TransferData()
Dim lngLastRow As Long
Dim lngRow As Long
Dim strSheetName As String
Dim wsSource As Worksheet
lngLastRow = Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Set wsSource = ActiveSheet
With Application
.EnableEvents = False
.ScreenUpdating = False
.Calculation = xlCalculationManual
End With
strSheetName = InputBox("Please enter the name of the new worksheet", "Transfer Data")
If StrPtr(strSheetName) = 0 Then
MsgBox "No worksheet name entered"
Exit Sub
End If