vijay.vizzu
Member
Hi all,
Below code is working fine for me, but i want to delete shapes in a particular range in the newly created sheet. please help me to get rid of this. I don't want to delete all shapes in my sheet
[pre]
[/pre]
Regards
Vijay
Below code is working fine for me, but i want to delete shapes in a particular range in the newly created sheet. please help me to get rid of this. I don't want to delete all shapes in my sheet
[pre]
Code:
Sub saveCreate()
Dim countWs As Integer 'To count total sheets in workbook
Dim numLtrs As Integer 'To count number of characters in vendor name
Dim vName As String 'To save vendor name
Application.ScreenUpdating = False
countWs = Worksheets.Count 'counts total sheets in workbook
Sheets("temp").Copy after:=Sheets(countWs) 'Copy & paste temp in end of the sheets
numLtrs = WorksheetFunction.Find(" ", [venName]) - 1 'counts number of intial characters before space
vName = Left([venName], numLtrs) 'gets vendor name
ActiveSheet.Name = vName 'rename the sheet with vendor name
Sheets("temp").Activate 'returns to main template
Range("rngAdd").ClearContents 'clear the contents
Range("vendcd").ClearContents 'clear the contents
Range("rngData").ClearContents 'clear the contents
Application.ScreenUpdating = True
End Sub
Regards
Vijay