View Single Post
 
Old 09-14-2011, 11:27 PM
saslotteroy saslotteroy is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Apr 2011
Posts: 7
saslotteroy is on a distinguished road
Default Sort table using macro

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!
Reply With Quote