我试图在VBA中添加一行代码以插入我创建的符号,然后将其移动。以下是我所拥有的,但是它一直标记着我的“ SYMBOL1”,我不确定为什么。可能是我没有使用正确的语法?
'The standard code to insert a symbol should be:
'ActiveLayer.CreateSymbol(X, Y, "SYMBOL NAME", LIBRARY)
Sub Macro5()
ActiveLayer.CreateSymbol(X:=1, Y:=1, **"SYMBOL1"**, SYM_LIB.CSL)
ActiveDocument.ReferencePoint = cdrCenter
ActivePage.Shapes.All.CreateSelection
ActiveSelection.SetPosition 1#, 1#
End Sub
感谢您的帮助,干杯!