+ Reply to Thread
Results 1 to 6 of 6

Cant make inputbox work in working code

  1. #1
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,119

    Cant make inputbox work in working code

    Hi I have big problems with the format. Specially when I receive pasted input from other. To handle this I created below code. I need the result in text format, before I work with it. I could not do this normal. I Make a help column, and with below code I run it in text format with leading zeroes. After I copy as value in the column I need it in as text with leading amount of zeroes, and delete the help column.
    Its not perfect but its working.
    My problem is I would like to have input boxes, so I can use this to other columns, with other amounts of zeroes.

    I have managed to put a input box in, from the start cell/column I paste the value in.,

    But I would really like and have tried much, to have 2 input boxes, for the amount of zeroes in the formula. The ones in red
    and for the range where I have to paste the formula in in the helpcolumn.

    This can maybe be done more smart. The important for me is that the result will be in text format, with the leading zeroes I choose infront
    If I have this I can use this code for other columns and other amounts of zeroes.

    Please have a look at below code and see if you can help.

    Thanks in advance

    Sincerely'

    Abjac




    Please Login or Register  to view this content.
    This is a working code from Nilem and it works brilliant but it don't make the result as a text format, which I realized I need.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Cant make inputbox work in working code

    no, nothing
    Last edited by nilem; 08-15-2014 at 09:55 AM.

  3. #3
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,119

    Re: Cant make inputbox work in working code

    HI Nilem and thanks allot. I tried the code in variant sheet I receive, I uploaded one here. It change to text but it give the same result in all rows. SO there must be some wrong. This example have the amount of zeroes but it need to be converted to text.

    Please have a look at the sheet I uploaded.

    Thanks in advance

    Abjac
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,119

    Re: Cant make inputbox work in working code

    HI When i loaded the code in the sheet i uploaded it gave this result. Same in all rows. Please try with the sheet i uploaded.

    Thanks in advance

    Sincerely
    Abjac

    Please Login or Register  to view this content.

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Cant make inputbox work in working code

    Hi Abjac,
    try this
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,119

    Re: Cant make inputbox work in working code

    Hi Nilem. Wow this one really works just perfect. Its so difficult with the format, can really be tricky. But this code is perfect, it works brilliant.

    Thanks allot.

    Have a nice evening

    Sincerely
    Abjac

+ 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] Change working code with choice with inputbox.
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-14-2014, 07:29 AM
  2. [SOLVED] Inputbox in working code dont work
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2014, 03:06 AM
  3. [SOLVED] Working code need inputbox for range
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2013, 06:52 AM
  4. [SOLVED] Help to inputbox for working code
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2013, 10:06 AM
  5. [SOLVED] Inputbox for working code really needed. Thanks
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-21-2013, 10:03 AM

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