ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   String Variables (https://www.excelbanter.com/excel-programming/275691-string-variables.html)

[email protected]

String Variables
 
I have a string variable called NAME. The variable holds a person's
name:

for example NAME = Peter

How do I return the first letter from the string variable NAME(i.e.
P). What string function do I use?

thankyou

Leo Heuser[_2_]

String Variables
 
FirstLetter = Left(Name,1)
Will do the job.
--
Best Regards
Leo Heuser
MVP Excel

Followup to newsgroup only please.

skrev i en meddelelse
om...
I have a string variable called NAME. The variable holds a person's
name:

for example NAME = Peter

How do I return the first letter from the string variable NAME(i.e.
P). What string function do I use?

thankyou





All times are GMT +1. The time now is 05:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com