+ Reply to Thread
Results 1 to 4 of 4

Worksheet_SelectionChange is blocking copy pastespecial function ..please help

  1. #1
    Registered User
    Join Date
    02-19-2011
    Location
    Cairo
    MS-Off Ver
    Excel 2010
    Posts
    60

    Lightbulb Worksheet_SelectionChange is blocking copy pastespecial function ..please help

    Hello Experts,

    i am having an issue with worksheet_selectionChange function as it's blocking pastespecial function usned by another marco!!
    i am attaching a sample for ref.

    i have worksheet(2) which has some records to be copied from another sheet ... this is working probably good without the selection function...
    when i wanted to add another function [Worksheet_SelectionChange ] to calculate the counts of some records in sheet(2) module according to selected rows - the result is good for th second function ...but when i want to run the first macro to do copy/pastespecial it gives me error!!!

    what is wrong with the code,

    many thanks for your help,
    Wellous
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,613

    Re: Worksheet_SelectionChange is blocking copy pastespecial function ..please help

    You need
    Please Login or Register  to view this content.
    before the PasteSpecial. Set it to True afterwards.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-19-2011
    Location
    Cairo
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Worksheet_SelectionChange is blocking copy pastespecial function ..please help

    Thanks TMS,
    is it that simple
    thanks again

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,613

    Re: Worksheet_SelectionChange is blocking copy pastespecial function ..please help

    is it that simple
    yep.


    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Calling a user defined function within Private Sub Worksheet_SelectionChange.
    By cool1_boy1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-09-2013, 04:18 PM
  2. Copy & PasteSpecial issue
    By Boris447 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2012, 09:25 AM
  3. Lost the copied data when run Worksheet_SelectionChange function
    By openSuSe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2008, 09:29 PM
  4. Copy range with pastespecial function
    By MandC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2007, 07:19 AM
  5. [SOLVED] Copy PasteSpecial not working
    By Richard Buttrey in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-11-2006, 11:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1