Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
HOW DO I DOUBLE SPACE IN EXCELL | New Users to Excel | |||
How do I put a "hard space" into text in a excel 2007 cell? | Excel Discussion (Misc queries) | |||
sperate from the space, in text, in the same cell | Excel Programming | |||
How can I double space in Excel w/o going2 each indiviudal cell? | Excel Worksheet Functions | |||
How can I double-space in an Excel cell? | Excel Programming |