SW Macro Syntax or Method?
SW Macro Syntax or Method?
(OP)
Howdy!
I’m a beginner trying to write a SW Macro. I’m not even sure if I’m asking the right question. Anyway here goes.
In the attached code I need to insert a variable <retvalCharHt> into the parameters of the <Part.InsertNote>.
I can’t seem to figure out the syntax for this.
I’m not sure but there may be a better method to do this since I’d like to eventually add a few different variables to the parameter.
Can anyone help?
After looking at the code, don’t be afraid to tell me I have no idea what I’m doing, I already know. ?
I’m a beginner trying to write a SW Macro. I’m not even sure if I’m asking the right question. Anyway here goes.
In the attached code I need to insert a variable <retvalCharHt> into the parameters of the <Part.InsertNote>.
I can’t seem to figure out the syntax for this.
I’m not sure but there may be a better method to do this since I’d like to eventually add a few different variables to the parameter.
Can anyone help?
After looking at the code, don’t be afraid to tell me I have no idea what I’m doing, I already know. ?
Tobin Sparks
www.nov.com






RE: SW Macro Syntax or Method?
Set swNote = Part.InsertNote("<FONT size=" & retvalCharHt & "PTS style=B effect=U>TEST TEXT" & Chr(13) & Chr(10) & "<FONT size=18PTS style=RB effect=RU>SECOND LINE TEXT" & Chr(13) & Chr(10) & "<FONT size=12PTS>SCALE 1:2")
RE: SW Macro Syntax or Method?
Thank You So Much.
What a difference a well placed quotation mark makes.
You're the same person that helped me with this before. Obviously you know quite a bit about SW Macros and VBA. I'm curious about how you learned? Is there a particular book or did you take classes or some other method? I'm open for recommendations.
Tobin Sparks
www.nov.com
RE: SW Macro Syntax or Method?
RE: SW Macro Syntax or Method?
Thanks
Tobin Sparks
www.nov.com