Results 1 to 18 of 18

Copy & Paste Columns to Specific Range while Removing Blanks & Duplicates

Threaded View

  1. #1
    Registered User
    Join Date
    03-23-2017
    Location
    Windsor Locks, CT
    MS-Off Ver
    2013
    Posts
    38

    Copy & Paste Columns to Specific Range while Removing Blanks & Duplicates

    I'm creating a document in excel that needs specific information copied from columns and pasted ntot a specific range. The problem I'm having is that it's copying blanks and duplicate information from the cells and it's putting it outside my range. I would like to remove the blanks and duplicate values and keep all information within my "Panels" range. My "Panels" range is from AZ95:BM104 respectively. Here's the code I currently have.

    Sub Marco1 ()
         Range("S2:AV100").Select       'Selection range that I'm copying is S2:AV100
         Selection.Copy
         Range ("Panels").Select           'Range pasting to is panels
         Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:= _ 
              False, Transpose:=True           'Special Paste values only
         Application.CutCopyMode = False
    
         Activesheet.Range("Panels").RemoveDuplicates Column:=Array(1,2), Header:=xlNo    'Remove all duplicate values this doesn't work
    
    End Sub
    Any help is greatly appreciated.
    Last edited by dondada82; 04-15-2017 at 03:51 AM. Reason: Additional information

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Copy and paste random cells values from a range to another sheet column with no blanks
    By macquhele in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2015, 06:05 PM
  2. Replies: 8
    Last Post: 04-04-2013, 08:02 PM
  3. Copy and paste specific range to date specific range in alternate sheet
    By alanalmarza in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2013, 08:29 AM
  4. Replies: 18
    Last Post: 09-08-2012, 07:13 AM
  5. Copy/Paste duplicates from multiple columns
    By sush23 in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 08-22-2012, 08:34 PM
  6. [SOLVED] Copy data from two columns and paste without duplicates in another column
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-22-2012, 07:56 PM
  7. Find duplicates in 2 columns and copy/paste to new worksheet
    By davidparkes in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 11-12-2010, 01:38 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