copytorange

  1. J

    Copying unique range pastes column 7 twice

    I have a code to copy columns A:L. Paste the unique rows to columns O:Z. Somehow, the code is overwriting column W with values from column G. Here is the code: Sub oneUserPerRow() Dim lastCol As Long, lastRow As Long, r As Long, i As Long Dim Rng As Range, Rng1 As Range, Rng2 As Range, Rng3 As...
  2. T

    CopyToRange doesn't copy

    Hi all, I'm having an Excel and I want to create a list of all unique values in Column A and B and copy them to a new sheet. This is my current Excel: This is my code: Sub CreateUniqueList() Dim lastrow As Long Dim ws As String ws = ActiveSheet.Name Sheets.Add.Name = "mysheet"...
  3. B

    VBA AdvancedFilter CopyToRange Missing Formats

    Hello All, I have successfully copied filtered data from one table to another with the code below. What is missing is the formatting from the source table "Data". The VBA code will only copy and paste the values. I want both data and formatting. How do I retain the formatting from the...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top