错误1004可枢转向导 [英] error 1004 pivottable wizard

查看:81
本文介绍了错误1004可枢转向导的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下网站上的代码创建一个宏来构建数据透视表:

I am trying to create a macro to build pivottable using the code at the following website:

http://msdn.microsoft.com/en-us/library/office/hh243933.aspx

但是我一直收到错误消息1004"对象'_worksheet'的方法'pivottablewizard'失败了吗?

but I kept getting error message 1004 "Method 'pivottablewizard' of object '_worksheet' failed?

有关此问题背后的原因和可能的修复方法的任何建议吗?

Any suggestions on the reason behind this problem and possible ways to fix it?

问候

推荐答案

样本基于一些数据和sheet。您将所有列和工作表设置为示例名称。

The samples are based on some data and sheet.Have you set all the columns and sheets to the name of sample.

例如:正在使用带有标题"GENDER"的字段。您的数据标题具有相同的名称。

Ex:are using a field which has caption "GENDER".Have your data header has same name.

我建议你只需打开宏记录器(从View-> Macro->点击箭头),然后摇动枢轴表。完成后"停止记录"。 (来自相同选项)

I suggest you to simply Turn The macro Recorder on (from View->Macro->Click arrow) and then craete pivot table.After it is done "Stop Recording " (From same Option)

现在按Alt + F11 - >您将进入VBE模块 - >查看Excel记录的内容。

Now Press Alt+F11 ->You will reach to VBE module->See what Excel has recorded.

 


这篇关于错误1004可枢转向导的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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