Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Delete duplicate rows using macro recorder

Hi all,

After following the instructions on Microsofts site on how to delete
duplicate rows, I ran into a "debug" error.

Here's what I did

1. Control+A to select all cells with data in them.
2. Went to: Data/Filter/Advanced Filter
3. Selected "Filter the list, in place"
4. Checked "Unique Records Only".
5. Selected "OK"
6. Selected Edit/Copy
7. Pressed Delete
8. Selected Edit/Paste

The macro results in the following error...

Title Bar - Microsoft Visual Basic

Run-time error '1004'
Paste method of Worksheet class failed

I noticed that while edit/paste is greyed out, I am able to paste from the
office clipboard. How can I tell Excel to paste from the lastest entry in the
office clipboard and not from the "regular" paste.


Thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Delete duplicate rows using macro recorder

EditPasteSpecialValues 'or whatever



"duugg" wrote:

Hi all,

After following the instructions on Microsofts site on how to delete
duplicate rows, I ran into a "debug" error.

Here's what I did

1. Control+A to select all cells with data in them.
2. Went to: Data/Filter/Advanced Filter
3. Selected "Filter the list, in place"
4. Checked "Unique Records Only".
5. Selected "OK"
6. Selected Edit/Copy
7. Pressed Delete
8. Selected Edit/Paste

The macro results in the following error...

Title Bar - Microsoft Visual Basic

Run-time error '1004'
Paste method of Worksheet class failed

I noticed that while edit/paste is greyed out, I am able to paste from the
office clipboard. How can I tell Excel to paste from the lastest entry in the
office clipboard and not from the "regular" paste.


Thanks in advance

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to create Macro to delete duplicate Rows Dennis Excel Programming 2 May 8th 08 01:10 PM
Delete Duplicate Rows Macro Question elfmajesty Excel Discussion (Misc queries) 1 June 17th 06 01:12 AM
macro to delete duplicate rows using Filter Lost in Alabama Excel Programming 2 March 8th 06 01:30 PM
Macro to delete duplicate/triplicate rows Ken Wright Excel Programming 0 August 11th 03 05:50 PM
Macro to delete duplicate/triplicate rows Tom Ogilvy Excel Programming 0 August 11th 03 05:47 PM


All times are GMT +1. The time now is 08:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"