I had a list with Emp name and manager
i wanted to create Name range, for combo box usage, but there were many common manager names.
So i thought of using pivot tableto create name rang using VBA
please check the attached file
After getting discharged from hospital, my memory has become very dull, so i am hardly able to remember much
I want to create a loop that will create Name Range from pivot table and Stop when the pivot table will end
i wanted to create Name range, for combo box usage, but there were many common manager names.
So i thought of using pivot tableto create name rang using VBA
please check the attached file
After getting discharged from hospital, my memory has become very dull, so i am hardly able to remember much
I want to create a loop that will create Name Range from pivot table and Stop when the pivot table will end
Code:
Sub Macro1()
Range("F3").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.CreateNames Top:=True
Selection.End(xlDown).Select
Selection.End(xlDown).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.CreateNames Top:=True
End Sub