how can i fix issue of Run-time error '1004'

Badsha, Gudulal 0 Reputation points
2024-10-29T13:35:40.2333333+00:00

Run-time error '1004'

This command requires at least two rows of source data. you cannot use the command on a selection in only one row. try the following:

If you are using an advance filter, select a range of cells that contains at least two rows of data. then click the advanced filter command again.

If you are creating a Pivot Table report or PivotChart, type a cell

Continue End Debug Help

Community Center Not monitored
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2024-10-29T14:20:25.94+00:00

    There is no C# code mentioned here. This sounds like an error in Office or a similar app. Based upon your error code and the debug help stuff this looks like a macro running in an Office app.

    Please provide us the steps to follow to replicate your problem including the app(s) you're using. It sounds like you're trying to use a pivot table/chart but the data you're providing isn't in a format that it requires. It requires at least 2 rows.

    0 comments No comments

  2. Badsha, Gudulal 0 Reputation points
    2024-10-29T15:36:09.1133333+00:00

    As i mention in above massage, if i click on 'End' button i loss my original format of the sheet. Kindly help me to fix this issue.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.