切换在VST / VBA(隐藏/显示输入标记)处根本不起作用。 [英] Toggling does not work at all at VST/VBA (Hide/Show Enter marking).

查看:79
本文介绍了切换在VST / VBA(隐藏/显示输入标记)处根本不起作用。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下代码存在很大问题,我很确定;



ActiveWindow.View.ShowParagraphs = False



ActiveWindow.View.ShowParagraphs = True



我在VSTO和VBE中尝试过它们。


它们都有相同的结果。根本不工作。


我的VBA代码中的完全相同的行超过20次。


当然所有这些都没有完全可以工作。



当然以下情况与我合作(在VSTO / VBA内);





ActiveWindow.ActivePane.View.ShowAll = False



ActiveWindow.ActivePane.View.ShowAll = True



我的环境是;


MS Office 2007 SP3(韩语)


Win 8.1 64位


Visual Studio 2010 Ultimate(和VS 2013 Express)



问候




我在这里看到了同样的问题。


" doc.ActiveWindow.View.ShowParagraphs无效。"


https://social.msdn.microsoft.com/Forums/office/en-US/99f7eca0-0e61-41ac-8182-ee544de615ba/docactivewindowviewshowparagraphs-is-no-effect?forum=vsto

解决方案

您好,


感谢您在MSDN论坛上发帖。


我试图在Office 2007中重现该问题,但失败了。  请检查 ""显示/隐藏所有格式标记""正在关注。您也可以通过以下代码关闭它:

 ActiveWindow.ActivePane.View.ShowAll = False 


如果它仍然不起作用,我建议检查选项是否可以手动工作(Word选项 - >显示),如下图所示:




如果  not,  I建议您尝试修复Office并将其更新到最新版本。


问候&费


The following codes have big problem, I am pretty sure;

.

ActiveWindow.View.ShowParagraphs = False

or

ActiveWindow.View.ShowParagraphs = True

.

I tried them within VSTO and VBE.

Both of them have the same result. Do not work at all.

I have the exact same line in my VBA codes more than 20 times.

Of course all of them do not work at all.

.

Of course the followings work fine with me (within VSTO/VBA);

.

ActiveWindow.ActivePane.View.ShowAll = False

or

ActiveWindow.ActivePane.View.ShowAll = True

.

My environments are;

MS Office 2007 SP3 (Korean)

Win 8.1 64 bit

Visual Studio 2010 Ultimate (and VS 2013 Express)

.

Regards

.

.

I saw the same problem here.

"doc.ActiveWindow.View.ShowParagraphs is no effect."

https://social.msdn.microsoft.com/Forums/office/en-US/99f7eca0-0e61-41ac-8182-ee544de615ba/docactivewindowviewshowparagraphs-is-no-effect?forum=vsto

解决方案

Hi,

Thanks for posting in MSDN forum.

I am trying to reproduce the issue in Office 2007, however failed.  Please check whether the "show/hide all formatting marks" is tuned on. You also can turn off it via code below:

ActiveWindow.ActivePane.View.ShowAll = False

If it still didn't work, I suggest that check whether option works manually(Word options->Displaying)like figure below:

If not, I suggest that you try to repair and update the Office to the latest version.

Regards & Fei


这篇关于切换在VST / VBA(隐藏/显示输入标记)处根本不起作用。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆