Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
JsJ_Slim JsJ_Slim is offline
external usenet poster
 
Posts: 2
Default How to copy/apply column formattings?

Hi,

Here's a scenario that I'm trying to achieve, and need help with:

When the user clicks on a button on the ribbon bar, a table is added to the
document (retrieved from a database). When the user clicks the button again,
I want to remove the old table, and create a new one in its place.

So far, I've been able to retain the style of the table only, using
table.get_Style(), and reapplying it using newTable.set_Style().

However, I've no idea how to retain any formatting/alignments for each
column (Eg, Name column = left aligned, Salary column = right aligned and
bolded, etc).

Please help.

Thanks
Josh
  #2   Report Post  
Posted to microsoft.public.word.tables
JsJ_Slim JsJ_Slim is offline
external usenet poster
 
Posts: 2
Default How to copy/apply column formattings?

Oops, think I posted in the general thread, but anyway, it is still
word-tables-related. I'm trying to achieve what I mentioned previously using
a Word 2007 AddIn.

Thanks!


"JsJ_Slim" wrote:

Hi,

Here's a scenario that I'm trying to achieve, and need help with:

When the user clicks on a button on the ribbon bar, a table is added to the
document (retrieved from a database). When the user clicks the button again,
I want to remove the old table, and create a new one in its place.

So far, I've been able to retain the style of the table only, using
table.get_Style(), and reapplying it using newTable.set_Style().

However, I've no idea how to retain any formatting/alignments for each
column (Eg, Name column = left aligned, Salary column = right aligned and
bolded, etc).

Please help.

Thanks
Josh

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I copy a 2 column table without it being corrupted? hms Microsoft Word Help 2 September 13th 06 02:19 PM
Copying a column does not copy shading Elizabeth Tables 0 June 7th 06 08:43 PM
Can't Copy Column of Selected Text JDFXD Microsoft Word Help 1 April 27th 06 09:35 PM
Word 2003 changes formattings of para styles in table DaveAS Tables 2 September 19th 05 02:16 PM
Delete old style and formattings Tom New Users 1 May 19th 05 10:46 PM


All times are GMT +1. The time now is 07:29 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"