问题标签 [office-2003]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
542 浏览

office-2007 - 链接两个 Office 文档

问题:

我有两个电子表格,每个都有不同的用途,但包含一个特定的数据,这两个电子表格需要相同。这条数据(其中一列)在电子表格 A 中更新,但也需要在电子表格 B 中更新。

目标:

一种以某种方式将这两个电子表格链接在一起的解决方案(请记住,它们存在于网络上的两个单独的 LAN 共享中),以便在更新 A 时,自动更新 B 以获取相应的记录。

*请注意,我完全理解数据库可能是完成此类任务的更好计划,但不幸的是我在这件事上没有发言权。

**另请注意,这需要适用于 Office 2003 和 Office 2007

0 投票
2 回答
8653 浏览

excel - Excel XML电子表格文件的条件格式中的数组公式?

Excel 通常将条件格式公式视为数组公式,除非从 Excel 2002/2003 XML 电子表格文件加载它们。

这只是 Excel 2002/2003 XML 电子表格格式的一个问题……本机 Excel 格式可以正常工作,较新的 Excel 2007 XML 格式 (xlsx) 也是如此。

加载电子表格后,可以通过选择格式化范围、转到条件格式对话框并单击确定来使其正常工作——但这​​只能解决会话的问题。

测试用例:

在新工作表中输入以下内容:

在单元格 A1:C1 上创建此条件格式公式(您为格式选择漂亮的颜色):

这是一个数组公式,只要其中任何一个具有“N”并且“N”下方的第 2 行中的单元格等于当前列的第 3 行中的单元格,就会为 A1、B1 和 C1 激活。

(这已经从现实世界的业务电子表格中简化了。对于测试用例的复杂性,我很抱歉,我正在尝试在这里找到一个更简单的测试用例。)

它可以工作......您可以以任何您想要的方式更改 N 或 x,并且格式可以正常工作。

将此保存为 XML 电子表格。关闭 Excel,然后重新打开文件。格式现在被破坏了。现在,您只能在 A1 为“N”且 A2 与 A3、B3 或 C3 相同时激活条件格式。B1、B2、C1 和 C2 的值对格式没有影响。

现在,选择 A1:C1 并查看条件格式公式。和以前完全一样。点击确定。条件格式再次开始工作,并将在文件打开的整个会话期间工作。

考虑的解决方法:

  1. 以本机 (BIFF) Excel 格式提供文件。不是一种选择,这些电子表格是由网络服务器动态生成的,这只是我们系统动态生成的几十种工作簿中的一种。

  2. 以 Excel 2007 本机 XML 格式 (xlsx) 提供文件。不是一个选项,当前用户群没有 Office 2007 或兼容性插件。

  3. 要求用户选择范围,进入条件格式对话框,然后点击确定。在这种情况下,不成熟的用户不是一个选择。

  4. 要求用户打开 XML 电子表格,另存为原生 XLS,关闭并重新打开 XLS 文件。这不起作用!如果从 XML 文件加载已损坏的格式,则本机 XLS 格式的格式仍然损坏。如果在保存之前执行上述(3),XLS文件将正常工作。

我最终重写了条件格式以不使用数组公式。所以我想这在某种程度上是“答案”,但它仍然是 Excel 2002/2003 处理 XML 文件中的一个未记录的(如果模糊的话)错误。

0 投票
12 回答
39488 浏览

ms-word - 如何比较两个word文档?

我团队的业务分析师经常向我们发送更新的需求文档,我最终通过比较旧版本来寻找最近的变化。他们是比较 Word 文档的好方法吗?

注意:我们打开了跟踪更改选项,但现在文件看起来像血浴,更复杂:(

0 投票
2 回答
1454 浏览

vsto - How can I improve cold startup performance for a VSTO2SE MS Office add-in?

If you create a simple "Hello World" VSTO2SE add-in targeting Microsoft Office Excel 2003, it takes 15 seconds to load on a cold startup. During that time, Excel is completely unresponsive.

The cold-startup time is always poor in Excel 2003. I have seen one test machine where the startup time is instant in Excel 2007, but all my other test machines take 15 seconds to initialize. (test environment - windows xp pro + VSTO2SE runtime + XP SP3)

How can this performance be improved?

Things I've already tried with no success:

  1. Disasble CRL (certificate revoke list) checking - this doesn't seem to help, plus I can't expect users to do this.

  2. Use NGEN to create native assemblies.
    a) It seems that Office 2003 never uses the native assemblies. b) My office 2007 test client that starts fast, does so even with IL assemblies. c) Even if I NGEN my entire depencency tree, there are still VSTO dependencies that may not have native images.

  3. Delay load the add-in - this is the workaround "stock response" i get from Microsoft. The thing is, my add-in is launched from a menu item - how can I delay load the add-in and still get my menus? I could use a VB6 add-in to draw the menus and forward the calls via interop, but then why would I even write a VSTO add-in in the first place?

Edit - Yes, that is the only line on the "connection" event in the add-in. (actually messagebox).. It takes a full 15 seconds before the message box appears. – J Davis

0 投票
2 回答
23949 浏览

vba - 如何使用 VBA 检索 Visio 自定义形状信息

使用 VBA,我如何从 Visio 2003 图表中检索自定义形状信息。

0 投票
3 回答
9676 浏览

ms-word - Making Word document embedded in a web page editable or read-only

I'm embedding some Word documents into our web page using iframe like this:

The problem is that the embedded Word control allows the user to edit the documents and shows an icon to save them, but doesn't actually save anything. Is it possible to setup Word to save edits back to the FTP server? If not, is there someway we can make the document read-only so the user doesn't get the idea that they can make changes? We're using IE7 and Word 2003.

(I just asked a related question about getting Word to save to a FTP server: Possible for Word to edit documents directly off an web server without Sharepoint?)

0 投票
3 回答
3743 浏览

vba - VBA 中的 IFDEF 等效项

我的代码需要同时在 Excel 2003 和 Excel 2007 上运行,并且有一些地方的版本更改会导致代码停止。我尝试使用 If-Else 语句将这些行分开,但代码不会在其中任何一个上编译,因为它无法识别用于另一个的代码。有什么方法可以告诉一个版本忽略 VBA 中的一段代码,类似于 C 或 C++ 风格的#ifdef?

0 投票
3 回答
4791 浏览

excel - 在 Word 文档中插入 Excel 表格时字体看起来不同

我正在尝试使用 VBA 宏(用于 Office 2003)来执行以下操作:

  1. 在 Excel 中,用户将选择一系列单元格
  2. 在 Word 中,用户将调用宏(通过按钮或快捷方式)将选定的 Excel 范围作为嵌入对象插入

到目前为止,代码不是问题,我的问题是:

  • 鉴于用户正在处理 Word 文档,很可能会在 Excel 中使用相同的字体
  • 当 Excel 范围插入 Word 并且它们都使用相同的字体名称和大小时,它们在 Word 中看起来不同(字体看起来好像有点拉伸)
  • Excel 中的单元格边框样式与 Word 中的单元格边框样式不同

我非常感谢有关这方面的任何建议

0 投票
2 回答
3564 浏览

c# - 如何在office word 2003 中禁用宏?

我正在尝试使用 Adob​​e distiller 将 word 报告转换为 PDF。其中一些word文件中有宏,当文档打开时会显示一个弹出窗口,这会停止自动化过程。

我们尝试通过禁用宏

wordApplication.AutomationSecurity = Microsoft.Office.Core.MsoAutomationSecurity.msoAutomationSecurityForceDisable;

但现在应用程序不再触发Document Open事件,在该事件中实现了转换代码。在这种情况下,编写代码是为了确保仅在 word 加载文件后进行转换。

有没有其他方法可以禁用宏?或任何其他方法,以便我可以禁用宏并确保加载文件以启动转换过程。

0 投票
1 回答
10871 浏览

excel - 用于将图表插入 ppt 幻灯片的 VBA

下面是我用来将图表从 excel 电子表格中提取到 ppt 中的过程。但是我无法弄清楚的一件事是如何将图片插入“对象”而不是仅仅将其粘贴到屏幕上。(即,如果我做了一个 ppLayoutFourObjects,并将四个图表发送到这张幻灯片,在添加另一个之前,我需要知道如何将图表粘贴到从 4 个对象选择中显示的每个指定矩形中)。我知道第一个似乎总是矩形五,我无法正确获取代码。请帮忙。这都是2003 Office。

谢谢你的帮助。PowerPoint 的 VBA 是我最弱的,但我真的需要拿起它来工作!多谢你们!