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 6631623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:34:20+00:00 2026-05-25T22:34:20+00:00

I need to copy rows in PowerPoint 2003 (just to re-use their formatting). Tried

  • 0

I need to copy rows in PowerPoint 2003 (just to re-use their formatting). Tried to do:

Dim oPPTRow As PowerPoint.Row

Set oPPTRow = oPPTFile.Slides(SlideNum).Shapes(1).Table.Rows(2)
oPPTFile.Slides(SlideNum).Shapes(1).Table.Rows.Add (-1)
oPPTFile.Slides(SlideNum).Shapes(1).Table.Rows(oPPTTable.Rows.Count) = oPPTRow

But it doesn’t work. Is there any other way to achieve the same?

  • 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-05-25T22:34:20+00:00Added an answer on May 25, 2026 at 10:34 pm

    The Rows.Add method lets you insert a new row before any row you like. The newly inserted row will pick up the formatting of the row you inserted it ahead of. Try this (be sure to select a tabel shape first):

    Sub AddNewRow()
        Dim oTbl As Table
        Dim oSh As Shape
    
        Set oSh = ActiveWindow.Selection.ShapeRange(1)
        Set oTbl = oSh.Table
    
        With oTbl
            .Rows.Add (2)
        End With
    End Sub
    

    Passing -1 as the parameter to .Add forces PPT to add the row at the end of the table; the new cells will all be formatted the same as the cells above them (that is, the cells in the row that was previously the bottom row).

    If you need to pick up formatting from some other row, I think you may need to do something like:

    Sub AddNewRow()
        Dim oTbl As Table
        Dim oSh As Shape
        Dim x As Long
        Dim lNewRow As Long
    
        Set oSh = ActiveWindow.Selection.ShapeRange(1)
        Set oTbl = oSh.Table
    
        With oTbl
            .Rows.Add (-1)
            lNewRow = .Rows.Count
            ' format the new row to match the cells in row two
            With .Rows(lNewRow)
                ' step across the row cell by cell
                For x = 1 To oTbl.Columns.Count
    
                    ' pick up row two formatting
                    oTbl.Cell(2, x).Shape.PickUp
                    ' apply it to new row's cell x
                    .Cells(x).Shape.Apply
    
                    ' do the same for cell's text formatting
                    oTbl.Cell(2, x).Shape.TextFrame.TextRange.Font.Name = oTbl.Cell(2, x).Shape.TextFrame.TextRange.Font.Name
                    ' Use above pattern to pick up/apply font bold, ital, size, color etc as needed
                Next
            End With
        End With
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to copy a full row in an SQL table but add -Copy
I need to copy certain columns of every row in sheet A into sheet
I have two identical tables and need to copy rows from table to another.
I need to copy over rows from Table B to Table A. The requirement
I hava very large table with 1373228 rows. I need to copy the result
So basically I've got 2 DataGridView and I need to copy the rows from
I need to copy the value in a column named TEAM from one row
I need to be able to copy a row from one table to the
I need to copy rows between multiple worksheets and while I managed to do
So I need to copy rows for 2 tables from one db to another.

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.