+ Reply to Thread
Results 1 to 12 of 12

Problem with division

  1. #1
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Problem with division

    Hi I cannot get this part of code to work?

    Basically, TextBox4 divided by textBox2


    Please Login or Register  to view this content.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Problem with division

    "Doesn't work" is a bit vague.

    What happens (or doesn't) that you don't (or do) want to happen? And under what conditions does this happen or not?

    BTW, are these text boxes on a user form or are they ActiveX on a worksheet?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: Problem with division

    Sorry, On a userForm - Run time error 11

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Problem with division

    That means that Val(TextBox2.Value) is returning 0.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  5. #5
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: Problem with division

    My brackets are wrong? Lol

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Problem with division

    Presumably whatever is in there is not a number. Is it blank?

  7. #7
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: Problem with division

    Sorry People just lost some work, I'll have to get back to you in the morning, thanks for help

  8. #8
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Problem with division

    maybe
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: Problem with division

    I've got it now lads, however, my last calc is not performing when I press the command button2.

    Rather than have another ComboBox, I'm asking the exiting contents of TextBox5 (which is 8) to be divided by one?? Can it be done chaps?




    Please Login or Register  to view this content.

  10. #10
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Problem with division

    What is the point in dividing by one?

  11. #11
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: Problem with division

    Shite, I've just realised I need 1 divided by 8 Lol, Sorry Man

  12. #12
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: Problem with division

    Sorry xlnitwit, its been a long day Lol. I needed 1 divided by the TextBox contents. All sorted now, thanks

+ 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] Division problem
    By gregb1203 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-27-2013, 02:42 AM
  2. [SOLVED] UDF Division Problem what operator?
    By CRIMEDOG in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-09-2012, 02:50 PM
  3. Excel 2007 : Problem With #division/0!
    By baek2 in forum Excel General
    Replies: 8
    Last Post: 10-25-2010, 05:07 AM
  4. Division problem with % Complete
    By dwiseman in forum Excel General
    Replies: 2
    Last Post: 02-24-2010, 10:04 PM
  5. Simple Division Problem
    By kungfumaster_12 in forum Excel General
    Replies: 1
    Last Post: 09-10-2007, 06:03 PM
  6. random division problem
    By blahone in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-31-2007, 05:59 PM
  7. Division problem
    By hejs in forum Excel General
    Replies: 6
    Last Post: 02-22-2005, 05:48 PM
  8. [SOLVED] Division problem
    By Wondering in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 01-27-2005, 07:06 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