+ Reply to Thread
Results 1 to 5 of 5

How to make textbox value negative at runtime?

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    How to make textbox value negative at runtime?

    Hello Excel Experts!

    My question is " Is it possible to make positive number of a textbox as negative when it reached to worksheet?"

    I am using this trick but it pops up " type mismatch error"

    Please Login or Register  to view this content.
    Any suggestions would be appreciated.

    Best Regards
    Imran Bhatti
    Teach me Excel VBA

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: How to make textbox value negative at runtime?

    Use Val(). e.g.
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: How to make textbox value negative at runtime?

    try this way
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    Re: How to make textbox value negative at runtime?

    Like always sir Keneth.


    Thanks

  5. #5
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    Re: How to make textbox value negative at runtime?

    kasan your code produced type mismatch . Anyway thanks for reviewing my problem.

+ 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] Userform VBA, textbox in a frame - runtime error 438
    By poolierob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-13-2015, 12:09 PM
  2. [SOLVED] Make certain Textbox negative value based on CheckBox
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2014, 10:51 AM
  3. help to convert textbox value to negative based on another textbox value
    By lewisw in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 03-19-2014, 11:00 AM
  4. Replies: 3
    Last Post: 03-09-2013, 12:55 PM
  5. Multiple TextBox Input From Runtime Records On Userform
    By bazza88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2010, 04:48 AM
  6. Replies: 5
    Last Post: 05-12-2009, 04:47 PM
  7. Insert a Textbox in a Frame during runtime
    By foxbeat in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-15-2007, 06:34 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