Consulting

Results 1 to 3 of 3

Thread: I need fixed decimal

  1. #1

    I need fixed decimal

    I dont want to increase decimal, but this happens when I want to manupulate textbox2 in the attached file. Can u help me with this pls.

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Hi Maryam
    Long is an Integer data type. Use Single or Double if you need to use decimal places. Use the Round function if you want to limit the displayed decimals.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    hi. lol! yes I made a mistake and defined it as long! you know under multipage_change I put dim x as long and then I didnt put anything for other events( textbox_exit) and I was getting different results. I think in other events it was considered as double.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •