Reply to topic  [ 3 posts ] 
Macro to reformat many tables? 
Author Message

Joined: 2006-06-29 07:56:30
Posts: 81
Location: Hudson River Valley, NY
From Word I imported an rtf file with many tables. Most are ill-formed and need to be reformatted. I want to apply the command "Fit to Contents" to all the tables in the document.

I know that I can put a menu macro "Table:Fit to Contents" inside an Applescript. However, for the "Fit to Contents" command to work, it is necessary to click inside a table. Is there (or will there be) a way of automating this process?

Thanks,
Steve


2007-06-05 06:20:02
Profile
Official Nisus Person
User avatar

Joined: 2002-07-11 17:14:10
Posts: 4251
Location: San Diego, CA
Post 
I believe the "Select Next Table" macro command behaves badly in the current public beta, but once NWP is out this should do what you like:

Code:
Set Selection 1, 0 # move to start of document
While Select Next Table
   Menu "Table:Fit to Contents"
End


2007-06-05 14:44:06
Profile WWW

Joined: 2006-06-29 07:56:30
Posts: 81
Location: Hudson River Valley, NY
Post 
Thanks, Martin!


2007-06-06 06:45:25
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software