Results 1 to 7 of 7

Thread: Formatting an Inputbox variable

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    4

    Cool Formatting an Inputbox variable

    Hello folks! It's been a few years since I've written VB codes.

    I'm using VBA for Excel and was wondering if there is a way to limit the user's entry in the Inputbox function.....in such a way like the old VB mask box.


    for instance...

    variable = Inputbox ("whatever")

    ...but when the Inputbox window pops up....I only want them to enter a value in Scientific Notation. I don't want them entering a string or any regular number.

    Instead of having them enter a value then checking for it....is there a way to only allow them to enter that type of format?


    I hope I'm making some sense.....maybe I need more sleep

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Formatting an Inputbox variable

    Excel VBA question moved to Office Development.

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Formatting an Inputbox variable

    Welcome to the forums!

    You can't use formatted input with an InputBox, but you could make your own control/form that traps input to conform to your specs.

  4. #4

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    4

    Re: Formatting an Inputbox variable

    ooooooooooooooooooooooooooooh
    bummer lol

    thanks for the help!

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    4

    Re: Formatting an Inputbox variable

    Is there anyway to change the font style/size on the Inputbox default message?...not the user input but the message itself.


    Gracias

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Formatting an Inputbox variable

    It's possible, but it's complicated.

    It would be easier to create your own form to act as an inputbox instead.

  7. #7

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    4

    Re: Formatting an Inputbox variable

    Sweeet. Thanks man!

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