Skip to main content
Participant
June 1, 2009
Question

How to change font size in a table?

  • June 1, 2009
  • 1 reply
  • 2044 views

How to change font size in a table without using the font style of another document?  Please show a sample script.  Thanks!

This topic has been closed for replies.

1 reply

Inspiring
June 1, 2009

It might help us to help you if you started out by showing us the code you're using to do this that uses a font style of another document.

Dave

lyscrnAuthor
Participant
June 1, 2009

Hi Dave,

Thank you so much for the email. I tried every object and method I can

posibly think about such as

myTable.Rows.Item(1).PointSize = 24

myCell.Characters.Item(1).PointSize = 24

I got error message all the time. These objects don’t support PointSize.

All I need is to change point size of the text in InDesign tables created

using VBScript. Could you help me with this? Thanks,

Regards,

Li

interesting_Flower157F
Inspiring
June 1, 2009

I dont know Vbscript, but in javscript, you do like this:

myCell.characters.item(1).pointSize = 24;

(Which would make the second character 24 units large)

In short, dont use uppercase for the first char - in OMV select characters, then pointSize, then you can see how it should be written.

(This could be different in Vbscript but dont think so.)

A JS example:

myDocument = app.activeDocument;
myCell = myDocument.pages[0].textFrames[0].tables[0].cells[0];
myCell.texts[0].pointSize = 24;