Sunday, October 9, 2011

Delete all The Name Ranges In the Workbook

If you want To Delete all the Name Ranges in the workbook. Snapshot below-



Here is the code-

Sub delte_all_name_ranges()
Dim dl As Name
For Each dl In ThisWorkbook.Names
dl.Delete
Next
End Sub

No comments:

Post a Comment

Import data from SQL

Macro to import data from SQL using ADO connection string: Sub Import_data_from_SQL() ' Tools -> References -> Microsoft Active...