+ Reply to Thread
Results 1 to 9 of 9

Copying Unique Values VBA

  1. #1
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Copying Unique Values VBA

    Hi

    I am trying to copy unique values from Transaction to Dashboard via VBA and function UniqueValue() which I am calling from Workbook_Open() but getting error We can't do that to a merged cell. Another problem is it triggers another function before completing UniqueValue()
    Attached Files Attached Files
    Last edited by grcshekar; 09-26-2023 at 09:27 AM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,946

    Re: Copying Unique Values VBA

    Try replacing your function with this to allow the code to complete without triggering other functions: not sure what is going on with the 'merged' cell message since there are none within those ranges....

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Valued Forum Contributor
    Join Date
    12-30-2020
    Location
    Odessa / Ukraine
    MS-Off Ver
    2021
    Posts
    301

    Re: Copying Unique Values VBA

    Hello @grcshekar.Take a look at this topic, maybe it will help you resolve your issue. Extract texts from list A to list B

  4. #4
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Copying Unique Values VBA

    Quote Originally Posted by Bernie Deitrick View Post
    Try replacing your function with this to allow the code to complete without triggering other functions: not sure what is going on with the 'merged' cell message since there are none within those ranges....

    Please Login or Register  to view this content.
    This is fine but the error We can't do that to a merged cell. and unable to copy

  5. #5
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Copying Unique Values VBA

    Quote Originally Posted by MikeVol View Post
    Hello @grcshekar.Take a look at this topic, maybe it will help you resolve your issue. Extract texts from list A to list B
    Didnt work

  6. #6
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Copying Unique Values VBA

    It's probably easier just to remove the pair of merged cells and make them look merged by adjusting the text wrap and left alignment.

  7. #7
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Copying Unique Values VBA

    Quote Originally Posted by ByteMarks View Post
    It's probably easier just to remove the pair of merged cells and make them look merged by adjusting the text wrap and left alignment.
    There are no merged cells

  8. #8
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Copying Unique Values VBA

    There are on the DashBoard sheet.

    G2:H2
    N3:O3
    A51:H51

  9. #9
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Copying Unique Values VBA

    Quote Originally Posted by ByteMarks View Post
    There are on the DashBoard sheet.

    G2:H2
    N3:O3
    A51:H51
    Oops ! Thank you it worked

+ 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] Copying Unique values from multiple sheets
    By Andrew.Trevayne in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-10-2017, 12:21 PM
  2. Copying and Pasting ONLY Unique Values from a range
    By liamfrancis2013 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-01-2016, 11:48 AM
  3. Copying unique values
    By satpalbhullar87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-26-2013, 11:44 PM
  4. [SOLVED] Copying Unique Values to a new sheet but with criteria from another column
    By dbracken1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2013, 02:26 AM
  5. Copying and Pasting Unique Values
    By himanshu83 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-29-2010, 04:01 PM
  6. Copying a row based on matching unique values
    By timmycl_7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2009, 12:13 PM
  7. [SOLVED] copying unique values to different cell
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-12-2005, 05:05 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