Sub FindDups()'' NOTE: You must select the first cell in the column and' make sure that the column is sorted before running this macro'ScreenUpdating = FalseFirstItem = ActiveCell.ValueSecondItem = ActiveCell.Offset(1, 0).ValueOffsetcount = 1Do While ActiveCell <> ""If FirstItem = SecondItem ThenActiveCell.Offset(Offsetcount, 0).Interior.Color = RGB(255, 0, 0)Offsetcount = Offsetcount + 1SecondItem = ActiveCell.Offset(Offsetcount, 0).ValueElseActiveCell.Offset(Offsetcount, 0).SelectFirstItem = ActiveCell.ValueSecondItem = ActiveCell.Offset(1, 0).ValueOffsetcount = 1End IfLoopScreenUpdating = TrueEnd Sub
/* remove trailing and leading white spaces */
Sub WhiteSpacer()Dim cel As Range, rg As RangeSet rg = SelectionIf rg.Cells.Count = 1 Then Set rg = ActiveSheet.UsedRangeSet rg = rg.SpecialCells(xlCellTypeConstants)If rg Is Nothing Then Exit SubApplication.ScreenUpdating = TrueFor Each cel In rg.Cells 'Replace requires Excel 2000 or later. For Excel 97, use Application.Substitute instead cel = Trim(Replace(cel, Chr(160), Chr(32))) 'VBA Trim removes leading and trailing spaces only 'cel = Application.Trim(Replace(cel, Chr(160), Chr(32))) 'TRIM function removes leading and trailing spaces, and converts multiple spaces in succession into a single oneNextApplication.ScreenUpdating = TrueEnd Sub
Subscribe to:
Post Comments (Atom)

5 comments:
0204全裸網,777露點聊天室,Hiav潮吹聊天館,utlive脫衣秀聊天室,口交俱樂部,18禁聊天館,影音俱樂部,無碼俱樂部,uthome脫衣秀做愛聊天室,Hiav下載裸照聊天館,777口交自慰俱樂部,0204正妹淫叫俱樂部,uthome脫衣秀做愛,av辣妹大奶,777口交影音,0204正妹淫叫,utlive網,av聊天館,777俱樂部,0204俱樂部,0204全裸網,Hiav潮吹聊天館,777露點聊天室,utlive脫衣秀聊天室,口交俱樂部,18禁聊天館,影音俱樂部,無碼俱樂部,0204正妹淫叫俱樂部,777口交自慰俱樂部,Hiav下載裸照聊天館,uthome脫衣秀做愛聊天室,0204正妹淫叫,777口交影音,av辣妹大奶,uthome脫衣秀做愛,0204俱樂部,777俱樂部,av聊天館,utlive網
I am follow your blog.
balubestdeals@gmail.com
路過--你好嗎..很棒的BLOG.........................................
Thank you for sharing this information,i am very happy with your updates.
small business logo design | design logo web | corporate logo designs | company logo designs
Great information on your site here. I love this post because we can get some useful information from your blog. I expect more post from you guys.
Animated Logo
Post a Comment