![]() |
|
#11
|
|||
|
|||
|
Quote:
Dear Guessed, I just tried this and it works perfectly for me! Thank you very much! ![]() Separately, do you have a solution to my earlier question on writing an excel VBA code to remove all blank cells and duplicates in all sheets of an excel workbook? ![]() This was my earlier code as shared (see below) but this was to remove blank cells only. Now, I wanted to remove the duplicates as well. Sub WorksheetLoop() ' Declare Current as a worksheet object variable. Dim Current As Worksheet ' Loop through all of the worksheets in the active workbook. For Each Current In Worksheets ' Insert your code here. On Error Resume Next Range("A2:A" & Current.UsedRange.Rows.Count).SpecialCells(xlCellT ypeBlanks).EntireRow.Delete ' This line displays the worksheet name in a message box. MsgBox Current.Name Next End Sub |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
How to import list from Excel into drop-down list into word
|
ahw | Word VBA | 43 | 02-28-2020 08:11 PM |
Assigning Macro to Drop Down list Content Control
|
aussiew | Word VBA | 5 | 03-10-2019 02:55 PM |
Export Word Drop-Down Content Control to Excel Specific Sheet
|
nolanthomas32 | Word VBA | 4 | 09-19-2017 06:25 AM |
How to get a Drop Down List Content Control box to fill in other areas
|
snips1982 | Word | 2 | 03-22-2017 03:37 AM |
| Word 2010 Content Control help - Combo Boxes vs Drop Down List | proghy | Word | 1 | 09-16-2014 02:01 PM |