LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Paste failing after cut

Application.CutCopyMode = False clears the clipboard, so that has to be done after the paste.

Excel will also clear the clipboard with the slightest provocation.
So you always want the copy/cut to occur as close as possible to the paste.
So as a test, comment out the line "Selection.AutoFilter Field:=PurchasedWantsColumnNumber"
that occurs immediately after the cut and see what happens.

Also...
the line "Application.CutCopyMode = xlCut can be deleted.
gPurchasedWantsColumn is not declared.
add "Option Explicit" as the first line in the module.

If you still have problems, provide any error messages you receive and where.
Make sure you don't have an "On Error Resume Next" in the code someplace.
--
Jim Cone
Portland, Oregon USA
http://www.mediafire.com/PrimitiveSoftware
(free and commercial excel programs)





"stainless"
wrote in message
...
On Jun 11, 8:18 pm, "Jim Cone" wrote:
Swap these two lines...
Application.CutCopyMode = False
ActiveSheet.Paste

--
Jim Cone


Sorry, still fails on the ActiveSheet.Paste.


 
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
paste link failing Sam Excel Discussion (Misc queries) 0 February 23rd 10 12:26 AM
Failing with formula Charlie Excel Discussion (Misc queries) 8 August 5th 09 02:54 PM
Shell Out Failing mburkett Excel Programming 6 January 27th 08 02:59 AM
Paste As Link Failing xcelion Excel Programming 3 November 24th 04 03:19 PM
Macro failing Syd[_3_] Excel Programming 0 September 17th 03 02:51 PM


All times are GMT +1. The time now is 09:55 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"