Results 1 to 11 of 11

Smart Merging

Threaded View

  1. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Smart Merging

    If you want to use VBA you should refrain from merging cells (VBA doesn't like them).

    An alternative

    Sub snb()
     sn = Cells(1, 2).CurrentRegion
        
     For j = UBound(sn) To 2 Step -1
      If sn(j, 1) = sn(j - 1, 1) Then sn(j, 1) = ""
     Next
        
     Cells(1, 3).CurrentRegion.Offset(, 7) = sn
    End Sub
    PS Unfortunately I wasn't able to detect any 'sage' info in the file
    Last edited by snb; 10-07-2011 at 06:39 AM.



Thread Information

Users Browsing this Thread

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

Tags for this Thread

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