完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在使用Excel 2013和Window 7.我创建了一个Scatter Chart。
但垂直网格线的颜色非常浅(浅)。 我尝试用Excel的宏编辑图表,然后将其翻译成VEE 9.32。 但是VEE 9.32没有名为RGB()的库。 因此垂直网格颜色仍然不是黑色。 Sub Macro2()''Macro2 Macro''ActiveChart.Axes(xlValue).MajorGridlines.Select ActiveChart.SetElement(msoElementPrimaryCategoryGridLinesNone)ActiveChart.SetElement(msoElementPrimaryCategoryGridLinesMajor)ActiveChart.Axes(xlValue).HasMajorGridlines = True ActiveChart.ChartArea.Select ActiveChart.Axes (xlValue).MajorGridlines.Select ActiveChart.Axes(xlValue).MajorGridlines.Select With Selection.Format.Line .Visible = msoTrue .ForeColor.RGB = RGB(0,0,0)// VEE没有RGB(); 结束于Selection.Format.Line .Visible = msoTrue .ForeColor.ObjectThemeColor = msoThemeColorText1 .ForeColor.TintAndShade = 0 .ForeColor.Brightness = 0.Transparency = 0 End With End Sub请指教。 谢谢。 以上来自于谷歌翻译 以下为原文 I am using Excel 2013 and Window 7. I created a Scatter Chart. But the Vertical Grid lines' colors are very shallow (light). I tried to edit the Chart with Excel 's Macro and then translate it into VEE 9.32. But VEE 9.32 does not have a library called RGB(). So the vertical Grid color is still not black. Sub Macro2() ' ' Macro2 Macro ' ' ActiveChart.Axes(xlValue).MajorGridlines.Select ActiveChart.SetElement (msoElementPrimaryCategoryGridLinesNone) ActiveChart.SetElement (msoElementPrimaryCategoryGridLinesMajor) ActiveChart.Axes(xlValue).HasMajorGridlines = True ActiveChart.ChartArea.Select ActiveChart.Axes(xlValue).MajorGridlines.Select ActiveChart.Axes(xlValue).MajorGridlines.Select With Selection.Format.Line .Visible = msoTrue .ForeColor.RGB = RGB(0, 0, 0) // VEE does not have RGB(); End With With Selection.Format.Line .Visible = msoTrue .ForeColor.ObjectThemeColor = msoThemeColorText1 .ForeColor.TintAndShade = 0 .ForeColor.Brightness = 0 .Transparency = 0 End With End Sub Please advise. Thanks. 附件
|
|
相关推荐
2个回答
|
|
一般来说,你是从错误的一方骑马。
即使您可以通过Active X等控制大部分内容,但并不支持所有来自较新Excel版本的部分,在您的情况下我不知道支持什么 - 也许有一个命令可以用来获取结果,但是 这不是推荐的方法 - 如果ms更改了某些内容,那么你必须再次更改命令....在一天结束时不是很聪明。 更好的,以及我推荐的做这些事情的方法:1。制作ecxel模板,用一张数据表,然后在其中放入一些虚拟数据。 2.在其他表格上,你制作你想要做的所有图表和事物,比如更薄的蓝色闪亮线条;-) 3.存储这个4.使用vee,打开模板然后将数据放入 - 在这种情况下只是 在工作表1中.5。使用其他名称存储新工作表。 瞧...所以你只需使用VEE来更新数据,就不再需要宏或神秘的activeX命令了。 推荐方式.... 以上来自于谷歌翻译 以下为原文 You are riding the horse from the wrong side, generally speaking. Even though you can control mostly everything via Active X and the like, not all parts from newer Excel Versions are supported, In your case i do not know what is supported - perhaps there is a command which you can use to get your results, but this is not the recommended way to do it- as -if ms changes something, then you have to change your command again....not very clever at the end of the day. Much better, and my recommended way of doing these things: 1. make an ecxel template, with one sheet for your datas, and you put at the beginning some dummy data in it. 2. on the other sheets, you make all your diagrams and things you want to do, like thinner blue shining lines ;-) 3. Store this 4. Use vee, open the template and just put your data in - in this case just in sheet 1. 5. Store your new sheet with a different name. Voila... So that you just use VEE to update your data, no need for macros or cryptic activeX commands anymore. Recommended way.... |
|
|
|
非常有趣的问题,这里的建议也给了我很大的帮助。
我是图表UI控件的新手,不熟悉散点图制作。 这个问题帮助我解决了许多疑虑。 以上来自于谷歌翻译 以下为原文 Very interesting question, the suggestions here also did me great favors. I am new to a chart UI control, unfamiliar with the scatter chart making. This question helped me to resolve many of my doubts. |
|
|
|
只有小组成员才能发言,加入小组>>
1251 浏览 0 评论
2360 浏览 1 评论
2173 浏览 1 评论
2041 浏览 5 评论
2925 浏览 3 评论
997浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
725浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
826浏览 0评论
1252浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-3 07:33 , Processed in 1.553440 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号