Select Single Cell After Paste Large Range

  • Hi all -


    I would like to select cell A6 after pasting a large range so that when send to user the entire range is not selected


    I tried

    Code
    wsDestPage.Range("A6").Select


    And

    Code
    wsDestPage.[a6].Select


    I receive

    Quote

    Select method of range class failed


    How can I select a single cell after pasting the large range?


    Thanks
    -marc

  • Re: Select Single Cell After Paste Large Range


    Did you disable cutcopymode before selecting the cell? In which sheet do you want to select cell A6? The activesheet or another sheet? It is rarely needed to select a cell unless you require the user to be deposited there at the end of your code.

    I am new to VBA - comments on how to improve my code are always welcome.

  • Re: Select Single Cell After Paste Large Range


    Hi Marc,


    Can you post the rest of your code, maybe it could be adjusted so that you don't have to select any areas for copy or paste.


    Bill

  • Re: Select Single Cell After Paste Large Range


    Thanks
    I added application.cutcopymode = false
    No help. Most likely I used incorrectly


    code below
    Thanks
    -marc


  • Re: Select Single Cell After Paste Large Range


    Bump -


    Hi all -


    With the current code, the range remains selected and "greyed"
    What can I do to remove this?
    See my code snip in prior post


    Thanks
    -marc

  • Re: Select Single Cell After Paste Large Range


    Hi all -


    Determined I need to activate the sheet before I can select a range (cell) on the sheet.


    Code
    wsDestPage.Activate
                        .Range("A6").Select


    This works and removes the blue shading from the pasted area.
    But on every sheets a cell in row 10 is selected not row 6
    Usually in ColA but I have one sheet with Col's A & B hidden so should select in Col C, but E10 is selected instead.


    It's not a big problem, just an oddity that doesn't seem to make sense.


    Thanks much
    -marc

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!