|
-
May 17th, 2004, 05:37 PM
#1
Thread Starter
New Member
Reading from a cell in Excel
Hellooooo every one
I am trying to write a macro that reads an array of characters from a Cell within an excel worksheet, which have the form
"EM12"
I want to make the program to seprate the alphabetic part ( Which allways come fist) from the numeric part. It could easily be done in C++ by comparing the values of array[i], but I am not as familir with VBA and I get error
Thanks so much please tell me how to do it!
-
May 17th, 2004, 08:59 PM
#2
Addicted Member
Is everything always 2 alpha and 2 number?
TempstringA = Left(Cells(1,1).value,2)
TempStringB = Right(Cells(1,1).value,2)
TempIntegerA = Val(TempStringB)
-
May 18th, 2004, 12:03 AM
#3
Thread Starter
New Member
No that is not the case I want to be able to read and process each character by itself. because the format is not allways the Same.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|