![]() |
|
#1
|
|||
|
|||
|
Hi all,
I've been stuck on this for very long and would appreciate any help whatsoever! I've created a mail merge that populates a table in Word. The table will be populated with the account's sales for 1 of 6 eligible product groups (see below) However, if the account has no sales for a specific product group (Mobile PC - Column 2), then some of the cells are left blank (see below). I'd like to create a VBA code that would detect if any cells are blank within the table and if so, delete the entire column (see final result below, Mobile PC column is deleted). I have been deleting each column manually in the past, but have now been tasked with completing these letters once a week. We have thousands of accounts which means I have to manually delete thousands of columns each week. Any help would be so appreciated, thank you! |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Macro to delete all empty rows from all tables
|
braddgood | Word VBA | 15 | 10-02-2015 01:54 PM |
Delete row when 2 column has no value
|
Rok | Word VBA | 1 | 11-26-2013 01:59 AM |
Unable to open or delete an empty folder
|
Zimm | Windows | 4 | 11-19-2013 05:07 PM |
| Delete lots of empty space between paragraphs. | FieldTechnician | Word | 4 | 10-25-2013 01:14 PM |
Macro to delete rows with all empty cells
|
ubns | Excel Programming | 2 | 08-14-2012 02:01 AM |