#1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 12
Default newline

in my input box the question is long and need to split it down. How do i
get this

"please enter name of guests - First name, last name sperated buy a
comma"

to this

"Please enter guests name"
"First name, last name"
""
"Seperated by a comma"




current code
------------
GuestName = InputBox("please enter name of guests - First name, last
name sperated buy a comma", "Enter name")


big thx
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 117
Default newline

GuestName = InputBox("Please enter name of guests" & vbCrLf & "First name,
last
name" & vbCrLf & vbCrLf & "separated by a comma", "Enter name")

"Tree*Rat" wrote:

in my input box the question is long and need to split it down. How do i
get this

"please enter name of guests - First name, last name sperated buy a
comma"

to this

"Please enter guests name"
"First name, last name"
""
"Seperated by a comma"




current code
------------
GuestName = InputBox("please enter name of guests - First name, last
name sperated buy a comma", "Enter name")


big thx

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 209
Default newline

Tree*Rat wrote:
in my input box the question is long and need to split it down. How do i
get this

"please enter name of guests - First name, last name sperated buy a
comma"

to this

"Please enter guests name"
"First name, last name"
""
"Seperated by a comma"




current code
------------
GuestName = InputBox("please enter name of guests - First name, last
name sperated buy a comma", "Enter name")


big thx


Usually it's best to store the first name and last name as separate fields.

gls858
  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 12
Default newline

gls858 wrote in
:

Tree*Rat wrote:
in my input box the question is long and need to split it down. How
do i get this

"please enter name of guests - First name, last name sperated buy a
comma"

to this

"Please enter guests name"
"First name, last name"
""
"Seperated by a comma"




current code
------------
GuestName = InputBox("please enter name of guests - First name, last
name sperated buy a comma", "Enter name")


big thx


Usually it's best to store the first name and last name as separate
fields.

gls858


they will be stored as seperate fields as I will split the input. hence
the comma. But thanks anyway!
  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,934
Default newline

How will your code split these two names (both are friends of mine)?

Joseph Della Rossa (Della Rossa is his last name)

Mary Anne Whitfield (Mary Anne is her first name)

--
Rick (MVP - Excel)


"Tree*Rat" wrote in message
6.253...
gls858 wrote in
:

Tree*Rat wrote:
in my input box the question is long and need to split it down. How
do i get this

"please enter name of guests - First name, last name sperated buy a
comma"

to this

"Please enter guests name"
"First name, last name"
""
"Seperated by a comma"




current code
------------
GuestName = InputBox("please enter name of guests - First name, last
name sperated buy a comma", "Enter name")


big thx


Usually it's best to store the first name and last name as separate
fields.

gls858


they will be stored as seperate fields as I will split the input. hence
the comma. But thanks anyway!




  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 209
Default newline

Rick Rothstein wrote:
How will your code split these two names (both are friends of mine)?

Joseph Della Rossa (Della Rossa is his last name)

Mary Anne Whitfield (Mary Anne is her first name)

  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,934
Default newline

Your comment did not come through with your posting...

--
Rick (MVP - Excel)


"gls858" wrote in message
...
Rick Rothstein wrote:
How will your code split these two names (both are friends of mine)?

Joseph Della Rossa (Della Rossa is his last name)

Mary Anne Whitfield (Mary Anne is her first name)


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
Insert newline in cell through formula (excel 2003) Bart Wouters Excel Worksheet Functions 2 July 23rd 07 04:04 PM
Importing data to excel (newline/carriage return issue) Tandaina Excel Discussion (Misc queries) 7 September 1st 06 03:16 AM
How to substitute a comma with a newline char using Replace. edspyhill01 Excel Discussion (Misc queries) 9 July 30th 06 12:38 AM
How do I ignore newline character/carriage return while importing Achal Excel Discussion (Misc queries) 6 March 24th 05 02:24 AM


All times are GMT +1. The time now is 04:14 AM.

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

About Us

"It's about Microsoft Excel"