+ Reply to Thread
Results 1 to 4 of 4

Generate Powerpoint - textbox with multiple font styles

  1. #1
    Registered User
    Join Date
    07-08-2017
    Location
    -
    MS-Off Ver
    Windows 2010, primarily developing .xls
    Posts
    13

    Generate Powerpoint - textbox with multiple font styles

    I'm modifying a macro that generates a powerpoint based on spreadsheet data. The functional part I'm concerned with is something like this:

    Please Login or Register  to view this content.
    What I'm trying to do is append another set of text in a similar fashion, but style it differently - e.g. blue Calibri size 14 for the existing text, but red Arial size 12 for the new text, in the same text box.

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,150

    Re: Generate Powerpoint - textbox with multiple font styles

    You can experiment a little with the code below (but this is for the old '2k powerpoint', in the new one errors may occur):
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-08-2017
    Location
    -
    MS-Off Ver
    Windows 2010, primarily developing .xls
    Posts
    13

    Re: Generate Powerpoint - textbox with multiple font styles

    Quote Originally Posted by porucha vevrku View Post
    You can experiment a little with the code below (but this is for the old '2k powerpoint', in the new one errors may occur):
    Please Login or Register  to view this content.
    So basically, use TextRange.Characters, select the relevant characters, and style them? (just making sure I understand, I have next to no experience working with PowerPoint objects)

  4. #4
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,150

    Re: Generate Powerpoint - textbox with multiple font styles

    Probably one of 'many methods'.
    Nobody has a ready-made, final solution.
    Everybody doing something needs to practice a little.
    Change, adjust, and sometimes start all over again.
    All in all, very few do anything with vba in this application.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] PivotTable Styles - Change font size
    By FixandFoxi in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 03-07-2017, 07:57 AM
  2. [SOLVED] Vba to change font or fontstyle when inserting data from cells into a powerpoint Textbox
    By colinduncan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2013, 08:36 AM
  3. No Styles Group & Conditional If/Then Font Colors
    By edgemont1 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-29-2012, 05:19 PM
  4. mix font styles in concatenated text
    By Beege in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-26-2006, 12:50 PM
  5. [SOLVED] mix font styles in concatenated text
    By Lakeside Steph in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-26-2006, 12:30 PM
  6. mix font styles in concatenated text
    By Lakeside Steph in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-26-2006, 12:25 PM
  7. [SOLVED] mixed font styles in the output of a formula?
    By trumbore in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-13-2005, 10:05 PM
  8. Changing the font size in Styles...
    By Dave F. in forum Excel General
    Replies: 1
    Last Post: 08-03-2005, 12:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1