+ Reply to Thread
Results 1 to 7 of 7

Write results of inputbox vertical, dont accept text but numbers only

  1. #1
    Forum Contributor
    Join Date
    11-08-2017
    Location
    London
    MS-Off Ver
    Office 2007
    Posts
    122

    Write results of inputbox vertical, dont accept text but numbers only

    Need some help with an inputbox.....my product code is 4 numbers. Currently it write the value in B2. I need the value to be written on the 4 blue cells.Also it must only accept numbers and not text....Currently this accept text. Rep given for a solution.See my sheet attached
    Please Login or Register  to view this content.
    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Write results of inputbox vertical, dont accept text but numbers only

    I'm not VBA savvy put perhaps you should Dim response as something else than a string?

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Write results of inputbox vertical, dont accept text but numbers only

    Will this work for you ?
    Please Login or Register  to view this content.
    Last edited by bakerman2; 03-22-2019 at 04:59 AM. Reason: Added accept max 4 digits
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Write results of inputbox vertical, dont accept text but numbers only

    Try
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-08-2017
    Location
    London
    MS-Off Ver
    Office 2007
    Posts
    122

    Re: Write results of inputbox vertical, dont accept text but numbers only

    Quote Originally Posted by bakerman2 View Post
    Will this work for you ?
    Please Login or Register  to view this content.
    Works flawlessly Thank you ++++++++ Rep

  6. #6
    Forum Contributor
    Join Date
    11-08-2017
    Location
    London
    MS-Off Ver
    Office 2007
    Posts
    122

    Re: Write results of inputbox vertical, dont accept text but numbers only

    Quote Originally Posted by jindon View Post
    Try
    Please Login or Register  to view this content.
    This works too Thank you Jindo ++++++ Rep

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Write results of inputbox vertical, dont accept text but numbers only

    thanks for feedback and rep+.

+ 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. Code to Locate Numbers and Write Results
    By scott1945 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-25-2019, 04:31 PM
  2. [SOLVED] Text box wont accept numbers
    By scott micklo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2016, 07:52 AM
  3. [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
  4. [SOLVED] Variable text/numbers between fixed text in in inputbox
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-06-2013, 03:29 PM
  5. My numbers keep turning into text and I dont know why
    By shakey775 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-14-2012, 07:55 AM
  6. InputBox to Accept Negative Value
    By zimbo109 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-26-2010, 11:26 AM
  7. Does SUMPRODUCT only accept text and numbers?
    By Racorfrank in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-04-2005, 03:19 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