Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Send numbers from textbox with multiline property to specific columnby identifying first 8 digits

To anyone who can help me,

First of all thank you for trying to help me. I need help with two userforms.

For first userform name (BATCH1)with one textbox(BATCHIN)and enter button:
1) When i press enter, i would like the first 8 digits of the number to match the column with same digits and entered at its row.
Example : I have more than 100 product codes. I have created 100 columns with different codes like 00302100 (column A), 12001218(Column B) and etc. So when i enter batchnumber i need the first 8 digits of batchnumber will be compared and if it matches, the batch number will be displayed rows under specified column.

Example : when i press enter button for BATCHIN 00302100080210114
12001218002121314

The code will match and display only 2100080210114(first 4 digits removed) under rows of column A and display 1218002121314((first 4 digits removed)under column B.I need the formula updates empty rows in specific column automatically.
I know the code uses "if" and "match" but i cant come up with working solution.
If anyone can generate the code for "if" and "match" i will modify the codes for
the rest of my products.


For second userform name (BATCH2)with 2 textbox (BATCHOUT & PO NUMBER)and enter button:

The idea is same with userform BATCH1. Difference is once i press the enter button the result will be displayed in two different sheets in same file.

Example : when i press enter button for BATCHOUT 00302100080210114
12001218002121314
The code will match and display only 2100080210114(first 4 digits removed) under rows of column D & po number at column C.It will also display 1218002121314((first 4 digits removed)under column F and po number at column E.

Aside from that, at the same time when i enter the enter button for BATCHOUT,
the po number and batch number(first four digits removed) will be entered in new sheet and displays date and time it was entered. For this, the code doesnt have to match with the batch number. I just need to batch number displayed to check later for errors.

I have tried these for almost a month now. I can create the code for a single fuction but i dont know how to combine them. Any help is much appreciated. Thank you.



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 to get autoscroll in a multiline textbox? Nicola M Excel Programming 1 December 8th 08 11:06 AM
Textbox and multiline text Mats Samson Excel Worksheet Functions 0 September 18th 07 08:18 PM
Editing multiline textbox אלי Excel Programming 8 June 27th 07 08:04 AM
Multiline textbox for data entry אלי Excel Programming 2 June 12th 07 11:50 AM
Multiline textbox.. Can you have multiple font colors within? bdcrisp[_14_] Excel Programming 3 December 12th 03 12:51 PM


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

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"