PDA

View Full Version : need help on word macro



Rathish
08-15-2013, 07:01 AM
Hi Need your help on my word project.

i have prepared 3 functions
format text - which will apply a style for text
style for image
apply style for a table.

i want help to run macro in whole document;
identify if the selection is a table or text or image
and call functions accordingly.

please help......

fumei
08-15-2013, 05:56 PM
What have you got so far? This is fairly common...where have you searched? There is likely something on this site already.

fumei
08-17-2013, 11:45 PM
If you tell us what you have so far - you DO say you have prepared something - we can possibly help. BTW, you can check if the Selection is in a table with:

If Selection.Information(wdWithInTable) = True