用户形式不保存和消失 [英] Userforms Not Saving and Disappearing

查看:68
本文介绍了用户形式不保存和消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi All - 道歉。


Project 2010(14.0.6023.1000)标准SP1 MSO(14.0.6129.5000),在Windows XP Professional SP3中运行。


我的全局文件中出现了UserForms问题 - 偶尔消失或无法访问("找不到文件"错误和"自动化错误")。我最初认为我有全局文件本身在
中出现某种损坏,因此导出所有内容并多次从头开始重新生成文件,但错误仍然间歇性地出现。


虽然大多数行为是间歇性,因此无法可靠地再现,我已经隔离了一些导致问题再现的复制步骤 - 这发生在一个空白的全局文件中,没有任何内容。


所以我试过了:



  • 删除全局文件,强制MSP创建空白文件
  • 删除所有功能区/快速访问权限自定义(对此没有希望那个,但想要排除它)
  • 修复我的MS Project安装并重新启动工作站

但都无济于事。


以下步骤在我的工作站上100%重现问题 - 如果其他人也能重现,我将不胜感激:


问题A - 用户表单更改未保留


  1. 删除现有的全局文件 [个人资料] \ Application Data \ microsoft \ MS Project \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ VB编辑器(查看>宏> Visual Basic
  2. 右键单击 ProjectGlobal(Global.MPT),然后选择
    Insert> Userform
  3. 关闭刚出现的用户窗体(UserForm1)
  4. 重新打开用户窗体并进行更改(即将标题更改为"UserForm1234")
  5. 点击VBE 工具栏上的保存按钮
  6. 关闭并重新打开用户形式



    结果:步骤6中所做的更改不会持续存在。它已恢复到原始状态。

问题B - ''无法加载

继续上述方案:


  1. 右键单击 ProjectGlobal(Global.MPT),然后选择
    Insert> Userform
  2. 关闭刚出现的用户窗体(UserForm2),后面的窗体(UserForm1)
  3. 重新打开用户窗体(UserForm2)
  4. 更改表格名称,例如来自"UserForm2"到"UserForm2345"
  5. 单击工具栏上的"保存"按钮
  6. 关闭并重新打开用户形式



    结果:显示错误消息 - 无法加载'。

    现在无法打开或导出表单

问题C  - 文件不是 d

继续上述方案:


  1. 右键点击 ProjectGlobal(Global.MPT)并选择
    插入> Userform
  2. 单击VBE工具栏上的保存按钮
  3. 关闭刚出现的用户窗体
  4. 重新打开用户窗体(UserForm2)
  5. 从"UserForm2"缩短表单 标题到"UserForm2468"
  6. 单击工具栏上的"保存"按钮
  7. 关闭并重新打开UserForm2



    结果:
    显示错误消息 - 找不到文件

问题D  - 应用程序崩溃没有错误,损坏全局

从上面的场景继续:


  1. 打开UserForm2345
  2. 打开UserForm2



    结果:MSP和VBE应用程序立即关闭而不发生错误

  3. 重新打开MS Project
  4. 重新打开Visual Basic编辑器



    结果:错误消息指出加载期间发生错误。





    ProjectGlobal现在是n amed
    ,包含Global的完整路径,并且不包含前面步骤中创建的任何表单:

解决方案

Andrew,


我不知道这是否会有所帮助,但Project 2010存在用户表单问题。当我遇到userform问题时,Rod Gill向我指出了以下修补程序:


http://support.microsoft.com/kb/2596585  


你可能想尝试一下。


约翰


Hi All - apologies for the length.

Project 2010 (14.0.6023.1000) Standard SP1 MSO (14.0.6129.5000), running in Windows XP Professional SP3.

I have been having problems with UserForms in my global file - occassionally disappearing or becoming otherwise inaccessible ("File not found" errors and "Automation Errors"). I initially thought I had some sort of corruption in the global file itself, so exported everything and rebult the file from scratch multiple times, but the errors kept appearing intermittently.

While most of the behaviour is intermittent, and therefore can't be reliably reproduced, I've isolated some reproduction steps which cause issues to recur - and this happens on a blank global file, with nothing in it.

So far I've tried:

  • Deleting the global file, forcing MSP to create a blank one
  • Deleting all Ribbon/Quick Access customisations (wasn't hopeful on that one, but wanted to rule it out)
  • Repairing my installation of MS Project and restarting the workstation

But all to no avail.

The following steps are reproduce the issue 100% on my workstation - I'd be grateful if anyone else could also reproduce:

Issue A - User Form Changes not Persisting

  1. Delete the existing global file from [Profile]\Application Data\Microsoft\MS Project\14\1033\Global.MPT
  2. Open MS Project
  3. Open the VB Editor (View > Macros > Visual Basic)
  4. Right click on ProjectGlobal (Global.MPT) and select Insert > Userform
  5. Close the userform that just appeared (UserForm1)
  6. Reopen the userform and make a change (i.e. change the caption to "UserForm1234")
  7. Click the Save button on the VBE toolbar
  8. Close and reopen the userform

    RESULT: The change made in step 6 does not persist. It has reverted back to its original state.

Issue B - '' could not be loaded
Continuing on from the scenario above:

  1. Right click on ProjectGlobal (Global.MPT) and select Insert > Userform
  2. Close the userform that just appeared (UserForm2), and the form behind (UserForm1)
  3. Reopen the userform (UserForm2)
  4. Change the form name, e.g. from "UserForm2" to "UserForm2345"
  5. Click the Save button on the toolbar
  6. Close and reopen the userform

    RESULT: Error message displayed - '' could not be be loaded.
    The form now can't be opened or exported

Issue C - File not found
Continuing on from the scenario above:

  1. Right click on ProjectGlobal (Global.MPT) and select Insert > Userform
  2. Click the Save button on the VBE toolbar
  3. Close the userform that just appeared
  4. Reopen the userform (UserForm2)
  5. Shorten the form caption from "UserForm2" to "UserForm2468"
  6. Click the Save button on the toolbar
  7. Close and reopen the UserForm2

    RESULT:
    Error message displayed - File not Found

Issue D - Application Crash without Error, Corrupting Global
Continuing on from the scenario above:

  1. Open UserForm2345
  2. Open UserForm2

    RESULT: The MSP and VBE applications close immediately without giving an error
  3. Reopen MS Project
  4. Reopen the Visual Basic Editor

    RESULT: Error message stating Errors occurred during load.


    The ProjectGlobal is now named
    with the full path to the Global, and contains none of the forms created in the previous steps:

解决方案

Andrew,

I don't know if this will help but Project 2010 has problems with userforms. When I had userform problems, Rod Gill pointed me to the following hotfix:

http://support.microsoft.com/kb/2596585 

You might want to give it a try.

John


这篇关于用户形式不保存和消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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