Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Double Space in Text Box or Excel Cell

I am creating a form and would like to use Excel. My hangup is that I need
to be able to enter text double spaced without having to go back after it's
entered and physically put in a return (such as in a text box). Is there a
way to format for double spacing? Can't find it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Double Space in Text Box or Excel Cell

Maybe this:

Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)

With TextBox1
.Text = Replace(.Text, vbNewLine, vbNewLine & vbNewLine)
End With

End Sub

NickHK

"mpierson" wrote in message
...
I am creating a form and would like to use Excel. My hangup is that I

need
to be able to enter text double spaced without having to go back after

it's
entered and physically put in a return (such as in a text box). Is there

a
way to format for double spacing? Can't find it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default Double Space in Text Box or Excel Cell

Hi,

You need double space after "enter" key was pressed, maybe you need this one:

Private Sub TextBox1_KeyDown(ByVal KeyCode As _
MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = 13 Then TextBox1 = TextBox1 & vbNewLine & vbNewLine
End Sub

--

Regards,

Halim


"mpierson" wrote:

I am creating a form and would like to use Excel. My hangup is that I need
to be able to enter text double spaced without having to go back after it's
entered and physically put in a return (such as in a text box). Is there a
way to format for double spacing? Can't find it!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default Double Space in Text Box or Excel Cell

mpierson,

Ooops... please note that you have to set TextBox1 property Multiline = True


--

Regards,

Halim


"Halim" wrote:

Hi,

You need double space after "enter" key was pressed, maybe you need this one:

Private Sub TextBox1_KeyDown(ByVal KeyCode As _
MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = 13 Then TextBox1 = TextBox1 & vbNewLine & vbNewLine
End Sub

--

Regards,

Halim


"mpierson" wrote:

I am creating a form and would like to use Excel. My hangup is that I need
to be able to enter text double spaced without having to go back after it's
entered and physically put in a return (such as in a text box). Is there a
way to format for double spacing? Can't find it!

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
HOW DO I DOUBLE SPACE IN EXCELL EILEENE New Users to Excel 2 October 15th 09 07:13 PM
How do I put a "hard space" into text in a excel 2007 cell? Tom S Excel Discussion (Misc queries) 2 September 24th 08 04:26 PM
sperate from the space, in text, in the same cell Fam via OfficeKB.com Excel Programming 7 May 31st 06 05:21 PM
How can I double space in Excel w/o going2 each indiviudal cell? VNOLAN Excel Worksheet Functions 1 October 17th 05 02:28 AM
How can I double-space in an Excel cell? Tom Ogilvy Excel Programming 0 September 15th 04 08:53 PM


All times are GMT +1. The time now is 09:36 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"