工作表复制移动空白或错误

时间:2015-03-18 11:53:50

标签: excel vba excel-vba excel-2013

  

Microsoft Excel 2013(15.0.4675.1000)32位

当试图移动或复制我的一张工作表时,无论是在同一工作簿还是其他工作簿中,我都会得到名为Sheet1 Sheet2等的空工作表。

尝试使用VBA以编程方式执行相同操作时:

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

我也收到错误Run time Error 1004: Method Copy of class Worksheet failed 这种情况经常发生,每次都发生在不同的纸张上。

也许是因为纸张上有许多定义的范围?

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

如果我尝试删除它,那么在创建空工作表之后,Excel将停止工作并崩溃。

这是一个Excel错误还是什么?

Here is attached file

您可以复制发票单吗?

2 个答案:

答案 0 :(得分:1)

我认为' 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

扫描整个系统对于没收各种恶意软件,损坏的文件,病毒等非常重要。当清理完成后,您必须使用可用于Registry的修复工具修复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.

答案 1 :(得分:0)

我明白了,因为excel表格是空的,而Sheet-1名称是你要复制的表格的名称是30或31个字符,Excel不接受任何超过31个字符的表格所以这就是无法正确复制的原因,请减少工作表的名称并尝试,我相信您可以将工作表复制到其他位置。

相关问题