Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default aligning entry in text box

Happy Holidays to all!

I have a workbook that has 2 userforms in it. The first is an entry
form with a textbox (txtReject) where the user will enter a number. I
have the alignment set to 1-fmTextAlignLeft, but when the form is
opened, the cursor is actually sitting one space to the right. Is
there a way to get it to start at the very left of the text box
(instead of backspacing before each new entry is made)?

The problem I'm having is that the data from the first form is sent to
a spreadsheet when a button is pressed. The second form has a combo
box linked to the spreadsheet, and a user will select a reject # from
the list and hit a refresh button to call that data to the second form
for updating/editing. If the entry is made using a backspace, the
second form works like a charm, without the backspace, it's like the
entry doesn't exist.

Thanks in advance...


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default aligning entry in text box

Just as you set the TextAlign property value to 1-
fmTextAlignLeft, you should also set the SelectionMargin
property value to False. This will fix your problem.


-----Original Message-----
Happy Holidays to all!

I have a workbook that has 2 userforms in it. The first

is an entry
form with a textbox (txtReject) where the user will enter

a number. I
have the alignment set to 1-fmTextAlignLeft, but when the

form is
opened, the cursor is actually sitting one space to the

right. Is
there a way to get it to start at the very left of the

text box
(instead of backspacing before each new entry is made)?

The problem I'm having is that the data from the first

form is sent to
a spreadsheet when a button is pressed. The second form

has a combo
box linked to the spreadsheet, and a user will select a

reject # from
the list and hit a refresh button to call that data to

the second form
for updating/editing. If the entry is made using a

backspace, the
second form works like a charm, without the backspace,

it's like the
entry doesn't exist.

Thanks in advance...


---
Message posted from http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default aligning entry in text box

Gandei, thanks so much!!! works like a charm!!!!!!

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on aligning a cell itself, not the text Susan Excel Discussion (Misc queries) 4 September 24th 08 02:32 PM
aligning text A Excel Worksheet Functions 4 August 22nd 07 03:25 PM
Aligning Wraped Text to the bottom of a cell Viking Excel Discussion (Misc queries) 2 July 7th 06 09:33 PM
Aligning decimal numers to the centre of the cell and aligning dec Ramesh Babu Excel Discussion (Misc queries) 1 July 1st 06 10:33 PM
Aligning text Louise Excel Discussion (Misc queries) 1 March 16th 05 11:49 AM


All times are GMT +1. The time now is 03:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"