Results 1 to 3 of 3

Thread: Reading from a cell in Excel

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    2

    Cool 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!

  2. #2
    Addicted Member
    Join Date
    Dec 2001
    Posts
    158
    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)

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    2
    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
  •  



Click Here to Expand Forum to Full Width