+ Reply to Thread
Results 1 to 7 of 7

Excel How to use InputBox as part of Formula

  1. #1
    Forum Contributor
    Join Date
    09-05-2013
    Location
    Spring, Tx
    MS-Off Ver
    Excel 365
    Posts
    122

    Excel How to use InputBox as part of Formula

    I have the macro below where I would like the user to enter the number of characters using an input box. I have pretty much exhausted my excel macro abilities trying to get it to work. Any help would be deeply appreciated. Thanks in advance.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,613

    Re: Excel How to use InputBox as part of Formula

    Try changing this
    Please Login or Register  to view this content.
    To this
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Excel How to use InputBox as part of Formula

    Hi there,

    It seems that you want to remove the rightmost x characters from the text value - if this is the case, try using:

    Please Login or Register  to view this content.

    Hope this helps.

    Regards,

    Greg M

  4. #4
    Forum Contributor
    Join Date
    09-05-2013
    Location
    Spring, Tx
    MS-Off Ver
    Excel 365
    Posts
    122

    Re: Excel How to use InputBox as part of Formula

    TMS thanks for your reply. Unfortunately I receive this old friend of mine.
    Run-time error '1004':

    Application-defined or object-defined error

  5. #5
    Forum Contributor
    Join Date
    09-05-2013
    Location
    Spring, Tx
    MS-Off Ver
    Excel 365
    Posts
    122

    Re: Excel How to use InputBox as part of Formula

    Greg M that works great thanks so very much

  6. #6
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Excel How to use InputBox as part of Formula

    Hi again,

    Many thanks for your very prompt feedback and also for the Reputation increase - much appreciated!

    You're welcome - glad I was able to help.

    Best regards,

    Greg M

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,613

    Re: Excel How to use InputBox as part of Formula

    You're welcome. Thanks for the rep.

    Looks like I left in a bracket surplus to requirements

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Replies: 1
    Last Post: 09-14-2021, 11:19 AM
  2. [SOLVED] Formula to sum Credit part and debit part data in column
    By rizmomin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-30-2020, 03:43 PM
  3. [SOLVED] How to crop a part of the URL using excel formula
    By 99problems in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-28-2016, 06:39 PM
  4. Replies: 1
    Last Post: 01-03-2016, 11:48 PM
  5. [SOLVED] MACRO: If user clicks cancel in inputbox,then do nothing. Problem with inputbox appearance
    By Tona in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-05-2015, 04:33 AM
  6. [SOLVED] Open excel file by providing a part of file name through inputbox
    By sbabu16 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2014, 05:30 AM
  7. Want to save a file with part of the name derived from an inputbox
    By camcrazy08 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2007, 04:24 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