Copy Paste Optimum Tested Method in VBA

Anonymous
2023-02-21T07:25:50+00:00

Dear Sir,

Good Morning.

I found that when i use normal copy paste method like

Range("g7:j10").Copy
Range("g14").PasteSpecial xlPasteValues

But it is making screen disappear. 

How to rewrite this line to make sure that screen is stable always?

Please advice.

Thanks.

Best Regards,

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2023-02-21T13:02:51+00:00

    Hello, I am Leonielhou, an Independent Advisor and a user like you, I am happy to help clarify any questions you may have.

    This works for me.

    Sub Sheetname () Application.ScreenUpdating = False Range("G7:J10"). Copy Range("G14"). PasteSpecial xlPasteValues Application.CutCopyMode = False Application.ScreenUpdating = True End Sub

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-02-21T08:45:56+00:00

    Hi there

    You may try the following line of code

    Range("G14:J17").Value=Range("G7:J10").Value

    Regards

    Jeovany

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2023-02-21T08:44:24+00:00

    Hi ExcelSuperXW!

    Try this

    Sub Copy_Range()

    Range("G7:J10").Copy Range("G14")

    End Sub

    Perhaps you should add the following code to your code,

    Paste this at the beginning of your code

    Application.ScreenUpdating = False '

    Paste this at the end of the code

    Application.ScreenUpdating = True

    Kind Regards,

    Shakiru

    Was this answer helpful?

    0 comments No comments