几何尺寸与公差论坛

 找回密码
 注册
查看: 893|回复: 0

【转帖】bom formatting

[复制链接]
发表于 2009-4-12 17:40:35 | 显示全部楼层 |阅读模式
bom formatting
i want to export my boms to an excel file. this is easy to do, but i am not getting the formatting i want. if i right click, and save as excel i get what i want, but if i use
text = tableannotation.displayedtext ( row, column )
or lukes exportbom macro i get some funny stuff. i have some cells that are different colors than the standard formatting and this is how they are displayed in the excel file
< font color=0x00ff0000>instr, gv2p mmp / frame 1 contactor linked
i tried switching "tableannotation.displaytext" to tableannotation.text, but saw no difference. i woudl have thought tableannotation.text would show the font color, but not if i used tableannotation.displaytext
anyone know how to get it to not display the font color stuff, and just show the description?
drc inc.
minneapolis, mn
.designreadycontrols.com
sw2007 sp5.0
core2 quad
3gb ram
xp pro sp2
ati firegl v3600
if you email me your slddrw or upload it here i can take a look and modify the macro
i will see what i can email when i get into work today. all i did was double-click on a cell in the sw-bom table and then changed the font color. i was thinking of maybe checking the value of the cell and if it begins with a "<" then strip all characters up to the ">"
drc inc.
minneapolis, mn
.designreadycontrols.com
sw2007 sp5.0
core2 quad
3gb ram
xp pro sp2
ati firegl v3600
i'm thinking more along the lines of actually parsing the data to format it in excel with color
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 00:27 , Processed in 0.034837 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表