Gap Between Left Side of Textbox and Text

P

Peter

I have a simple form with textboxes and other controls in a VBA macro called
from PowerPoint. There is always a gap between the left hand side of each
textbox and the start of the text. This behaviour appears to be consistent
across Office applications and for both Office 2000 and Office XP.

This is not the same behaviour as textboxes in forms developed by, eg .net,
and in Windows, where the text is hard against the left hand side. No amount
of fiddling with properties (or searching the web) allows me to change this.

Is there any way to remove this gap and thus make the form appear more like
a regular windows dialog box?

Thanks.

Peter
 
M

Martin Seelhofer

Hi Peter
I have a simple form with textboxes and other controls in a VBA macro
called
from PowerPoint. There is always a gap between the left hand side of each
textbox and the start of the text. This behaviour appears to be consistent
across Office applications and for both Office 2000 and Office XP.

This is not the same behaviour as textboxes in forms developed by, eg
.net,
and in Windows, where the text is hard against the left hand side. No
amount
of fiddling with properties (or searching the web) allows me to change
this.

It seems you weren't fiddling enough (see answer below) ;-)
Is there any way to remove this gap and thus make the form appear more
like
a regular windows dialog box?

Sure there is: just set the 'Selection margin'-property of the corresponding
textbox to false ;-)


Cheers,
Martin
 
S

Steve Rindsberg

I have a simple form with textboxes and other controls in a VBA macro called
from PowerPoint. There is always a gap between the left hand side of each
textbox and the start of the text. This behaviour appears to be consistent
across Office applications and for both Office 2000 and Office XP.

This is not the same behaviour as textboxes in forms developed by, eg .net,
and in Windows, where the text is hard against the left hand side. No amount
of fiddling with properties (or searching the web) allows me to change this.

Have you set the text box's SelectionMargin property to False? When True, it
gives you that extra left margin, and it's True by default.

SelectionMargin is one of the properties in the Properties window.
 

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