+ Reply to Thread
Results 1 to 4 of 4

Copy And Paste Range on diffrenct sheet Selection problem Solved by : sixthsense

Hybrid View

HaroonSid Copy And Paste Range on... 04-01-2014, 05:04 AM
:) Sixthsense :) Re: Copy And Paste Range on... 04-02-2014, 03:04 AM
HaroonSid Re: Copy And Paste Range on... 04-02-2014, 03:22 AM
HaroonSid Re: Copy And Paste Range on... 04-02-2014, 03:43 AM
  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Thumbs up Copy And Paste Range on diffrenct sheet Selection problem Solved by : sixthsense

    hello evryone
    i m using this code to select range and display in textbox1
    select ragne = (c10:c15)
    textbox1.value = (10:15)

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Dim myRange As Range
     Set myRange = Selection
     SID_EXTRA.TextBox1.Value = Target.EntireRow.Address(0, 0)
    End Sub
    But if i copy range = (c10:c15)
    and paste on other sheet = (c10:c15)
    then
    textbox1 show only
    textbox1.value = 10

    i need result if i copy and paste a ragne
    textbox1.value = 10:15


    thanx
    Last edited by HaroonSid; 04-02-2014 at 04:54 AM. Reason: solved

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Copy And Paste Range on diffrenct sheet Selection problem

    Try it in this way....

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    
    With Selection
        SID_EXTRA.TextBox1.Value = .Row & ":" & .Rows.Count + .Row - 1
    End With
    
    End Sub


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Copy And Paste Range on diffrenct sheet Selection problem

    not working

  4. #4
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Copy And Paste Range on diffrenct sheet Selection problem

    Sorry Sixthsense

    i was using wrong method

    ur code is working fine

    thanx a lot

    u deserve +1

+ 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. [SOLVED] Range Selection up to last visible adjacent cell,filter,copy paste to next sheet
    By kcube17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2013, 07:08 AM
  2. range selection problem to copy data from 1 sheet to another
    By apoo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2011, 02:55 AM
  3. Replies: 3
    Last Post: 11-12-2010, 04:31 AM
  4. Problem with Range,Selection, Copy and Paste
    By ljunggrenus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2007, 07:19 AM
  5. Replies: 1
    Last Post: 01-04-2005, 06:06 PM

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