Sheet复制移动空白或错误

Sheet copying moving blank or error

Microsoft Excel 2013 (15.0.4675.1000) 32bit

当尝试移动或复制我的 sheet 之一时,无论是在同一个工作簿还是其他工作簿中,我都会得到空的 sheet,命名为 Sheet1 Sheet2 等

当尝试使用 VBA 以编程方式做同样的事情时,例如:

Sheets("Invoice").Select
Sheets("Invoice").Copy Before:=Sheets(1)

我也遇到错误Run time Error 1004: Method Copy of class Worksheet failed 这种情况经常发生,而且每次都发生在不同的 sheet 秒。

可能是因为 sheet 上定义了很多范围?

我尝试在复制后保存并关闭工作簿,但很糟糕。 工作簿大小仅为 100Kb。

创建空 sheet 后,如果我尝试删除它 Excel 将停止工作并崩溃。

这是 Excel 错误还是什么?

Here is attached file

你能复制发票 sheet 吗?

我认为 'bug' 在这种情况下可能是公平的(对我来说不会发生,但我没有尝试使用您的文件,因为这需要注册)。 MS 有一个解决方法 here,但它看起来至少与您尝试过的方法非常 相似

其他建议包括(来自WebmasterFacts):

You need to stop all the programs that are running currently through Task manager
Now go the start menu and you will find control panel over there
Locate Add/ remove programs in there
Now look for ‘Microsoft Works’
When you find it, go ahead and remove it and you are good to go

扫描整个系统对于没收各种恶意软件、损坏的文件、病毒等很重要,清理完成后,您必须使用注册表可用的修复工具修复 Windows 注册表。现在,当您完成所有这些操作后,您将能够最终摆脱运行时错误 1004。

替代方法

Right click on the start menu
 You will find Explore option, select that
Once in there  you need to open this directory – C:\Program Files\MSOffice\Office\XLSTART
Here you need to delete “GWXL97.XLA” file
Now open the excel after you have closed the explorer
Your Excel will be running fine without giving any runtime error 1004.

我明白你的意思了,因为 excel sheet 正在用 Sheet-1 名称复制空的是 sheet 你正在尝试的名称copy 是 30 或 31 个字符,并且 Excel 不接受任何 sheet 超过 31 个字符所以这就是为什么它不能正确复制的原因,请减少 sheet 的名称并尝试,我相信您可以将 sheet 复制到其他位置。