| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 744 人关注过本帖
标题:Can I insert a button inside a word document and execute some codes af ...
只看楼主 加入收藏
vincent90152
Rank: 1
等 级:新手上路
帖 子:32
专家分:0
注 册:2007-7-24
收藏
 问题点数:0 回复次数:4 
Can I insert a button inside a word document and execute some codes after a u

Can I insert a button inside a word document and execute some codes after a user click the button?
How to do it?
This discussion is open to suggestions.
Many thanks for replying.

[此贴子已经被作者于2007-8-14 10:53:10编辑过]

搜索更多相关主题的帖子: insert button inside document execute 
2007-08-14 10:51
立志成佛
Rank: 1
等 级:新手上路
威 望:2
帖 子:314
专家分:0
注 册:2006-11-1
收藏
得分:0 

应该可以吧,我看到过。
是一个提交单,类似于数据透视表。
不过我没有研究过。


曾经的曾经已不在
2007-08-14 11:19
立志成佛
Rank: 1
等 级:新手上路
威 望:2
帖 子:314
专家分:0
注 册:2006-11-1
收藏
得分:0 

Office (2007) Open XML 文件格式简介
http://www.microsoft.com/china/msdn/library/office/office/OfficeOpenXMLFormats.mspx?mfr=true

Word 2007 中针对开发人员的新增功能
http://www.microsoft.com/china/msdn/library/office/office/ms406055.mspx?mfr=true


虽然ms说2007向后兼容,但是新的标准都是基于xml的,而且office文档标准国际上还在争,以后怎么变还不知道啊
如果微软的标准没有成为国际标准,对于以前的文档也是灾难性的,不过长痛不如短痛,毕竟大家都不喜欢一家称霸

曾经的曾经已不在
2007-08-14 11:27
立志成佛
Rank: 1
等 级:新手上路
威 望:2
帖 子:314
专家分:0
注 册:2006-11-1
收藏
得分:0 
回复:(vincent90152)Can I insert a button inside...
转贴-希望能对楼主有帮助 源地址:http://www.80diy.com/home/20051207/17/4444298.html

在VB中向Word中添加一按钮,这个按钮可不可以执行我想要的操作

我在VB中调用Word时,通过下面的语句向word的工具栏中添加了1个按钮,名为"保存"
======================================
    Set oBars = wdWord.CommandBars
Set oNewBar = oBars.Add("保存", , , Temporary:=True)
oNewBar.Visible = True
Set oNewButton1 = oNewBar.Controls.Add(msoControlButton)
oNewButton1.Style = msoButtonIconAndCaption
oNewButton1.Caption = "保存"
======================================
请问可不可以对这个新添加的"保存"按钮写上代码让他执行我想要的操作.例如执行
把当前操作的这个文档存到数据库中.

如果可以的话,应该在哪儿写呢. 问题点数:100、回复次数:1Top

试试对
Application.VBE属性操作


曾经的曾经已不在
2007-08-14 11:32
vincent90152
Rank: 1
等 级:新手上路
帖 子:32
专家分:0
注 册:2007-7-24
收藏
得分:0 
That is so cool, so helpful.
Thank you for your replying.
You are a good guy.
2007-08-14 11:47
快速回复:Can I insert a button inside a word document and execute some cod ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017285 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved