+ Reply to Thread
Results 1 to 4 of 4

Need help adjusting the input type from Integer to Alphanumeric

  1. #1
    Registered User
    Join Date
    04-22-2016
    Location
    Houston, Texas
    MS-Off Ver
    2013
    Posts
    2

    Need help adjusting the input type from Integer to Alphanumeric

    I'm a basic user and found this template that fits my needs. The only problem is when I put a alphanumeric value in columns A and B the functionality doesn't work. Can any one help?

    File attached.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: Need help adjusting the input type from Integer to Alphanumeric

    Hi

    I looked at the file and found it does work as expected
    as long as you change all references to an employee in both columns A and B.

    Additionally, this line in the macro should be adjusted
    .Value = .Value & Format(cell.Value, "00000.")
    to
    .Value = .Value & Format(cell.Value, "00000") & "."

    Unfortunately, the results won't be formatted as nicely as when numbers were used for employee IDs.

    - Stu
    If this has been helpful, please click on the star at the left.

  3. #3
    Registered User
    Join Date
    04-22-2016
    Location
    Houston, Texas
    MS-Off Ver
    2013
    Posts
    2

    Re: Need help adjusting the input type from Integer to Alphanumeric

    You are correct that it does work as expected. If I change the references in column A and B it does reflect in column D. I guess what I am asking is, is it possible to get it formatted the same way with alphanumerics as it is with integer values?



    TIA!

  4. #4
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: Need help adjusting the input type from Integer to Alphanumeric

    I think this small change in the 'DoReportingChain' macro will do what you want:

    Look for these two line near the bottom…
    Please Login or Register  to view this content.
    Change that to this.
    Please Login or Register  to view this content.
    Comments:
    - This will insert tilde (~) characters at the start of an employee number when it has fewer than 5 characters.
    - Change the tilde to whatever character you feel appropriate.
    - There will be a period after each of employee #s
    - You should use a monospaced font such as Courier on column E so the characters and periods line up.

    Hope this helps,
    - Stu

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Changing Textbox data type to integer
    By MarmaladeLover in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2014, 06:19 AM
  2. [SOLVED] Overflow when assigning a value to an Integer Data Type
    By Speshul in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2014, 09:12 AM
  3. [SOLVED] Adjusting Macro to save out as a certain file type
    By jlax34 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2012, 12:30 PM
  4. [SOLVED] Input Box must be integer, Cancel button type mismatch
    By Nrowell92 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2012, 03:29 PM
  5. Converting variant return type from evaluate to integer
    By PJN4 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-07-2009, 12:16 PM
  6. Check that input in textbox is an integer
    By marcusr in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-26-2007, 01:01 PM
  7. Problem using names as integer type
    By TJI in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2006, 07:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1