A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Need VBA Help with AddTextbox



 
 
Thread Tools Display Modes
  #11  
Old March 9th, 2007, 03:11 PM posted to microsoft.public.powerpoint
[email protected]
external usenet poster
 
Posts: 52
Default Need VBA Help with AddTextbox

On Mar 8, 8:37 pm, wrote:
On Mar 8, 8:00 pm, Steve Rindsberg wrote:

[snippidydoodahsnippidiyey]


[more snippage]

Getting much closer to the root cause, I think, Steve. Here's what we
found out this AM: when the problem occurs, the text box I've added
has "inherited" ruler first and left margins that appear to come in
from left field. (Actually, they happen to be the level 3 ruler
settings that are in the slide master. ???) I notice that if I insert
a text box from the PowerPoint menus, then the ruler margins are
automatically set at the slide master level 1 values.

Now, here's where it gets gummier: On a "good" file, if I insert a
textbox from the PPT menu, the first and left margins are set to 0 and
0. If I insert a textbox with my code, they also default to 0,0.

I think the nut of this is: on a "bad" file, what's causing it to
default the ruler first and left margins to values other than 0, 0?

Any of this ring any bells?

  #12  
Old March 9th, 2007, 06:32 PM posted to microsoft.public.powerpoint
Steve Rindsberg
external usenet poster
 
Posts: 9,366
Default Need VBA Help with AddTextbox

In article om, wrote:
On Mar 8, 8:37 pm, wrote:
On Mar 8, 8:00 pm, Steve Rindsberg wrote:

[snippidydoodahsnippidiyey]


[more snippage]

Getting much closer to the root cause, I think, Steve. Here's what we
found out this AM: when the problem occurs, the text box I've added
has "inherited" ruler first and left margins that appear to come in
from left field. (Actually, they happen to be the level 3 ruler
settings that are in the slide master. ???) I notice that if I insert
a text box from the PowerPoint menus, then the ruler margins are
automatically set at the slide master level 1 values.

Now, here's where it gets gummier: On a "good" file, if I insert a
textbox from the PPT menu, the first and left margins are set to 0 and
0. If I insert a textbox with my code, they also default to 0,0.

I think the nut of this is: on a "bad" file, what's causing it to
default the ruler first and left margins to values other than 0, 0?

Any of this ring any bells?


Sometimes files/objects in files can get corrupted; not enough to crash PPT but
enough to induce oddities like this.

Sometimes copying the affected shape to the clipboard then pasting it back
fixes it. In other cases you may have to delete and recreate the slide.

Roundtripping to HTML is another way to attempt repairs.
HTML "Round-tripping" to repair corruption
http://www.pptfaq.com/FAQ00526.htm


-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.