+ Reply to Thread
Results 1 to 4 of 4

copy the selected range

  1. #1
    Forum Contributor
    Join Date
    04-06-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    193

    Post copy the selected range

    when i press a1 then a1 value copy true
    if i select d3:d8 then a1 cutcopy false and d3:d8 range should copy with out using Ctrl+C
    how can i wrote macro?

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: copy the selected range

    Hi anilg0001,

    Suggest you to elaborate more on your requirement and what is your ultimate goal - is it that when you select any range after a1, that range should be copied without pressing ctrl + C ?


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Contributor
    Join Date
    04-06-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    193

    Re: copy the selected range

    thanks for ur reply
    a1 is only an example
    i want to copy the cells where i am
    if i am at a3
    then a3 value copy just after i select cell d7 to d10
    then that rage should copy and just after
    if i select e10: f20 then that range should copy
    thats all

    that means on range select event which code i want to write?
    selection.copy=true
    Last edited by anilg0001; 04-09-2013 at 03:23 AM.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: copy the selected range

    I hope it would be just selection.copy

    if i am at a3
    then a3 value copy just after i select cell d7 to d10
    You can be either at a3 or at D7:D10.. not on both places.
    Ideally the line should be "If I am at a3 then a3 value gets copied just before I select range d7:d10" ... correct ?


    Regards,
    DILIPandey
    <click on below * if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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