+ Reply to Thread
Results 1 to 19 of 19

copy-paste-selected-cell-range-another-sheet

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: copy-paste-selected-cell-range-another-sheet

    Hi,
    I have sheet1.
    In this I have columns A to N ( Rows A2 to N45) having data in it such as text, date, formula, numbers etc.

    I want to just copy the data ( value only) from Sheet1 A2:I45 , L2:L45 & M2:M45 ( skipping the column J & K)
    And paste it to sheet2 in C14:J56 , L14:L56 & M14:M56.

    In short I want the following:
    Copy from sheet1 Paste to sheet2
    A2:I45 C14:J56

    L2:L45 L14:L56

    M2:M45 M14:M56

    I tried everything. It does not work. If I copy and paste manually it takes few min, but this book is used by many and I want to avoid errors by others in doing so.
    Sorry bit confused. Please help
    Regards

  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-paste-selected-cell-range-another-sheet

    Try this...

    Sub test()
    
     'Turn off screen flashing for speed
    Application.ScreenUpdating = False
     
    With Worksheets("sheet1")
        .Range("A2:I45").Copy Sheets("sheet2").Range("C14")
        .Range("L2:L45").Copy Sheets("sheet2").Range("L14")
        .Range("M2:M45").Copy Sheets("sheet2").Range("M14")
    End With
    
     'Resume screen updates
    Application.ScreenUpdating = True
    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
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: copy-paste-selected-cell-range-another-sheet

    Actually, I have clicked on each of the cell in column L of sheet 2 and it actually has copied the formula instead of a result a word ' Overdue'
    e.g. in L14 in sheet2 is has a formula
    =IF(A14="","",IF(I14<AS14,"Overdue",""))

  4. #4
    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-paste-selected-cell-range-another-sheet

    Try this...

    Sub test()
     
     'Turn off screen flashing for speed
    Application.ScreenUpdating = False
     
    With Worksheets("sheet1")
        Sheets("sheet2").Range("C14").Value = .Range("A2:I45").Value
        Sheets("sheet2").Range("L14").Value = .Range("L2:L45").Value
        Sheets("sheet2").Range("M14").Value = .Range("M2:M45").Value
    End With
    
     'Resume screen updates
    Application.ScreenUpdating = True
    
    End Sub

  5. #5
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: copy-paste-selected-cell-range-another-sheet

    It means we now need coding to resolve Range Vs Value in column L on both sheets. I think so. I may be wrong pal.

+ 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