Jump to content

changing the name of a symbol in a worksheet?


Recommended Posts

It is possible to do this with a script call in in the Workseet.

=RUNSCRIPT('Script-1', A4, B4)

The Script (Make a new Script in the Ressource Browser Named "Script-1"

Switch to Python Script):

sym_name_old=vs.WSScript_GetPrmStr(0)
sym_name_new=vs.WSScript_GetPrmStr(1)

sym=vs.GetObject(sym_name_old)
vs.SetName(sym, sym_name_new)

vs.WSScript_SetResStr(sym_name_new)

If you want to do this in a Symbol-List Worksheet. You can't write lines to that list. So you have to make a Record Format. Which you can edit in the List. And The Script will rename the Symbol with that Record Entry

Edited by DomC
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...