ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Check if text box has more than one entry seperated by a comma (https://www.excelbanter.com/excel-programming/417103-check-if-text-box-has-more-than-one-entry-seperated-comma.html)

Les

Check if text box has more than one entry seperated by a comma
 
Hi all,

I have a text box that the user can put in either a single 7 digit part
number or more than one part number, seperated by a comma ",".

I am wanting to test the condition - either one 7 digit number or more than
one 7 digit number seperated by the comma.

Any help would be much appreciated..

--
Les

Dave Peterson

Check if text box has more than one entry seperated by a comma
 
You can use InStr to look for a comma.

You can use Split (xl2k or newer) to parse the string into an array.

Les wrote:

Hi all,

I have a text box that the user can put in either a single 7 digit part
number or more than one part number, seperated by a comma ",".

I am wanting to test the condition - either one 7 digit number or more than
one 7 digit number seperated by the comma.

Any help would be much appreciated..

--
Les


--

Dave Peterson

Les

Check if text box has more than one entry seperated by a comma
 
Thanks Dave
--
Les


"Dave Peterson" wrote:

You can use InStr to look for a comma.

You can use Split (xl2k or newer) to parse the string into an array.

Les wrote:

Hi all,

I have a text box that the user can put in either a single 7 digit part
number or more than one part number, seperated by a comma ",".

I am wanting to test the condition - either one 7 digit number or more than
one 7 digit number seperated by the comma.

Any help would be much appreciated..

--
Les


--

Dave Peterson



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

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