Тёмный

Excel Name Manager create syntax for large number of Names using VBA (no voiceover) 

Serban Nicolau
Подписаться 37
Просмотров 421
50% 1

Name Manager in Excel (CTRL+F3)
One can use the Name Manager dialog box and create Names click by click.
But when the number of Names becomes larger the operation becomes tedious.
You create a Sub in VBA to create those Names.
But that is tedious as well.
Therefore, you create an UDF for that syntax (see code below).
That function is to have 2 Arguments.
Argument 1: Name
Argument 2: RefersTo
Save file as XLSM
CTRL + Shift + A
(to see the arguments of the UDF)
Public Function Syntax_for_Name_Manager(Name, RefersTo As Range) As Variant
'Name Manager dialog box is accessed with CTRL+F3
Dim text_1, text_2, text_3 As Variant
text_1 = " ActiveWorkbook.Names.Add Name:="""
text_2 = """, RefersToR1C1:=""="
text_3 = """"
Syntax_for_Name_Manager = text_1 & Name & text_2 & RefersTo & text_3
End Function

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
УГОСТИЛ БЕЛКУ МОРОЖЕНЫМ#cat #cats
00:14
Pure Comedy #ti13
00:38
Просмотров 229 тыс.
5 Excel Secrets You'll Be Embarrassed You Didn't Know
17:32
3 Essential Excel skills for the data analyst
18:02
Просмотров 1,5 млн
IF AND OR Formula in Excel with MULTIPLE CONDITIONS
17:32
5 Things I wish I knew When I started using Excel VBA
12:45
Next level FILTER Function tricks | Excel Off The Grid
13:23
Learn Excel VBA to Automate Anything
14:02
Просмотров 427 тыс.
Highlight Active Row & Column in Excel (7 Levels)
22:56
How to insert VBA code in Excel
3:51
Просмотров 64 тыс.
УГОСТИЛ БЕЛКУ МОРОЖЕНЫМ#cat #cats
00:14