From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-05-2008 11:38 AM
I am trying to change the text style in Excel using ActiveX. I've been able to do things like set the horizontal and vertical alignment and set the row height and column width. Right clicking on the property node and selecting Help For Style has not been very helpful. (Neither has the other Help For ... with Excel ActiveX property nodes. I found the others on this message board.)
I would like to see some documentation on these properties and what type of data they expect. I've even been to the excel board on breakpoint and it has alot of useful information but not what I'm looking for. If anyone can help, I would greatly appreciate it.
Solved! Go to Solution.
09-05-2008 12:03 PM
I am assuming you've installed the Visual Basic Help for Excel, otherwise the right-clicking won't display the help for that particular property/method. Other than that, the definitve help is on MSDN.
Usually the best way to figure out what you need to do is to record a macro in Excel doing what you want to do. Then, switch to the VBA editor and you can see the exact commands.
09-05-2008 12:12 PM - edited 09-05-2008 12:13 PM
For example, if I start the macro recorder and click on a cell and select "Format -> Cells..." and set it up for Bold, 8 pt, the VBA code looks like this:
With Selection.Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 8
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
This can be written in LabVIEW this way:
09-05-2008 12:22 PM
09-05-2008 05:06 PM
09-06-2008 09:07 AM