how to change bullet styles by using VBA

V

vanhalsen

Hi there,

my problem is that i would like to create a textbox with some "dummy"
bullets. How do i set the style for the lower level bullets?

I used the ParagraphFormat command to set up the style for the first
level, but i don't know how to do it for the others.

many thanks in advance

vanhalsen
 
D

David M. Marcovitz

Shyam,

I think he wants to do it in advance. That is, he wants to set up a text
box so he can type paragraphs, hit the demote button, and type some more.
The VBA is used to set the bullets for the current paragraph (easy), and
future demoted paragraphs (possible?).

--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
D

David M. Marcovitz

Also, other than in a placeholder, I don't think you can do this with or
without VBA, but I would love to be wrong about this.
--David

Shyam,

I think he wants to do it in advance. That is, he wants to set up a
text box so he can type paragraphs, hit the demote button, and type
some more. The VBA is used to set the bullets for the current
paragraph (easy), and future demoted paragraphs (possible?).

--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
D

David M. Marcovitz

OK. Will PowerPoint remember it if it is added with code. If so,
Vanhalsen is in business. He can use the code to add several paragraphs,
format them to his liking, and delete all the paragraphs. Somehow, I'm
guessing that's not going to work, but I don't have time to try it now.
--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
V

vanhalsen

Steve,

thanks for your advice, but i am still too stupid. I tried two
different ways:

a) i created a textbox containing 3 paragraphs added bullet styles and
indent to each of them. So Paragraph(1) is Bullet level 1, Paragraph(2)
is Level 2, ..... but it still does not keep the formatting when i
delete the text

b) i created a textbox containing 1 paragraph added bullet style,
demoted it added another style, etc.

but it still does not keep the formatting. any ideas?

what i need to have is a text box containing a first bullet saying "add
text" here, and if some demote or promote it should switch to the
defined bullet style

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top