Consulting

Results 1 to 3 of 3

Thread: Integer division

  1. #1

    Integer division

    I'm wondering if there is a way to use integer division in VBA.

    When i google for it, there's some pages who say it is possible to say :

    24 \ 7

    which would give : 3

    However when i try to do this, i'm getting an error. So i'm wondering if it is even possible ? (excel 97)

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Try
    [vba]
    MsgBox 24 \ 7
    [/vba]
    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
    Thanks

Posting Permissions

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