Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8960267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:37:37+00:00 2026-06-15T15:37:37+00:00

I can create PowerPoint tables with many cells, but the default font (28 points)

  • 0

I can create PowerPoint tables with many cells, but the default font (28 points) is too large. Without access to the user’s PowerPoint template, how can I set the font for a table I have created? All I can do at the moment is:

  1. Create the table.
  2. Fill every cell with a single space because otherwise font changes are ignored
    (though it works using the PowerPoint UI).
  3. Create a range containing all cells and set font:

    List<string> names = new List<string>();
    foreach (PowerPoint.Column column in table.Columns)
        foreach (PowerPoint.Cell cell in column.Cells) {
            cell.Shape.TextFrame.TextRange.Text = "";
            names.Add(cell.Shape.Name);
        }
    PowerPoint.ShapeRange range = ppt.ActivePresentation.Slides.Item(1).Shapes.Range(names.ToArray());
    range.TextFrame.TextRange.Font.Size = 12;
    

I am using C# to control PowerPoint 2003..2010 via its COM API. My experiments have been with PowerPoint 2003.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:37:37+00:00Added an answer on June 15, 2026 at 3:37 pm

    In PPT 2010, this works w/o having to enter text into the cells (vba, but should be easy enough to translate). For demo purposes, I’m working with the currently selected table; substitute any other reference to the table as oTbl:

    Dim oTbl As Table
    Dim lCol As Long
    Dim lRow As Long
    
    
    Set oTbl = ActiveWindow.Selection.ShapeRange(1).Table
    
    With oTbl
        For lCol = 1 To .Columns.Count
            For lRow = 1 To .Rows.Count
                .Cell(lRow, lCol).Shape.TextFrame.TextRange.Font.Size = 28
            Next
        Next
    End With
    

    In PPT2003, as you’ve seen, you need to add text to the cell for the formatting to “take” (which seriously slows things down, unfortunately).

    Because there are other instances in PPT automation where you may need to temporarily fill in text then delete it, you might want to write a more general routine that you can pass a shape to.

    With Shape.TextFrame.TextRange
      If Len(.Text) = 0 Then
        .Text = "!@#$%" ' or some other lunatic string not likely to be found in nature
      End If
    End With
    

    “Pre-treat” the shape with this, do whatever’s necessary, then “Un-treat” it with a companion routine that tests to see if the text = “!@#$%” and sets it back to “” if so, leaves it alone otherwise.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can create a New user in ORACLE with full access (alter, delete, select,
I can create database manually by going to cpanel. But I'd like to create
I can create a contact that is not mail enabled, but how do I
I can create an array of buttons in Windows Form but how can i
We're trying to create a PowerPoint slide programmaticaly. We can obtain bullets on a
I can create the UIButton. But the callback: target: object won't work within the
Can we create tables dynamically in MySQL? If so, how? Dynamic means at run
Can we create an app on Android where we can create user profile on
I can create and use dynamic two dimensional array in Fortran (in 77 standard).
You can create a table model and add it to a table TableModel tm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.