LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default PasteSpecial Method Error


Hi,

I've designed a spreadsheet that has 2 tabs - Arrivals and Departures.
Each row in the spreadsheet represents a different project (with its
relevant information).

I have designed a macro that allows the user to move the project (row) from
the Arrivals tab to the Departures tab. All it does copy the entire row, move
to the Departures tab and paste the row at row 12 (moving all the other rows
down).

It was working fine.... until I put a few lines of code in to track changes
that a user makes to the spreadsheet. Below is the code -

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Not Application.Intersect(Range("a1:az2000"), Target) Is Nothing Then
Target.Cells.Interior.ColorIndex = 55
End If
End Sub

(This code is in the Sheet 1 section of the code window.)

Now when i run the macro is shows and error saying - PasteSpecial Method of
Range Class Failed. Apparently this means that the macro is thinking that it
has nothing to paste....
The macro still works - and carries over the project info - but I can't get
rid of the error message.

Any help would be great.

Cheers,
Phil
 
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
Error: method 'select' of object_worksheet' failed Carl Excel Discussion (Misc queries) 4 September 9th 06 08:52 PM
error message when opening excel 2000 Lem Excel Discussion (Misc queries) 3 August 31st 06 11:06 PM
Dynamic chart generation: Run time Error '1004: Method 'Cells' of object'_Global' fai Ajay_N Charts and Charting in Excel 1 August 15th 06 03:54 AM
Error when save as CSV with VBA password protection on [email protected] Excel Discussion (Misc queries) 0 August 1st 06 10:50 PM
ERROR Pinto1uk Excel Discussion (Misc queries) 1 February 8th 05 03:15 AM


All times are GMT +1. The time now is 04:09 AM.

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"