+ Reply to Thread
Results 1 to 5 of 5

copy current selection

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

    Post copy current selection

    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

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: copy current selection

    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

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

    Re: copy current selection

    no that is not correct

    here range a1 and range e1 were specified
    but i cant specify the range
    i need to copy the cells where i selected

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: copy current selection

    leave out range("A1").select then and it will copy the cells you have manually selected

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

    Re: copy current selection

    sry that is happend when i press a key or run that macro
    i need not run a macro
    i need code like this
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    selection.copy
    end sub

    its happend through mouseclick event
    if i select a1 then that will copy
    if i select other cells then that cells should copy

+ 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