![]() |
|
#1
|
|||
|
|||
|
Hi
I have a table in word that I want to have sorted for a column by either clicking a button (text box in the document) or using the keyboard (i.e. CTRL + U). I have managed to do the latter; the table updates when hitting CTRL + U. This was done only by recording a macro. However the problem is that when recording I am chosing a table manually and when running the macro it depends where the cursor is placed (as there are several tables in the document) So, my question is: is it possible to build into the macro that it's selecting the correct table? Maybe it is possible to give a table a title/name? Also if there are other more elegant ways of doing this, I appreciate feedback on this. Thank you! |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Generic range for custom sort macro?
|
tswiers | Excel Programming | 2 | 08-11-2011 02:40 AM |
How to sort table having three columns?
|
Bahir Barak | Word | 2 | 01-20-2011 01:52 PM |
| Can I sort a Pivot table by subtotals? | oshkosh | Excel | 1 | 12-07-2010 06:20 PM |
| Sort Macros | boutells | Excel | 1 | 07-16-2009 11:48 AM |
| Sort Range | boutells | Excel | 1 | 07-15-2009 03:02 AM |