+ Reply to Thread
Results 1 to 7 of 7

Division problem

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-11-2004
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    388
    Hi!

    Now to trigger the sub.

    A simple way is to use a command button. Don't be put off by the number of my words. The actions are straightforward.

    Locate the Control Toolbox toolbar (View > Toolbars .. and ensure that Control Toolbox is checked).
    Ensure your active (visible) worksheet is the one with the numbers on it and the code behind it.

    Hover your mouse over the icons on this toolbar and locate the one with the tooltip Command Button. Click on this icon and then use the cursor to draw a modest rectangle on the worksheet.
    Double click this new button (which will have "handles" on it at this stage) and you will be taken to the code page you made earlier and your cursor will be in a new sub thus:

    Private Sub CommandButton1_Click()

    End Sub

    In this sub, type divdiv

    Now return to the worksheet (use the Excel tab in the taskbar, for example).

    Ensure that the command button is active (the first Control Box toolbar icon toggles between Design Mode (which we don't now want) and Exit Design Mode (which we do want). No more handles on the button? OK. Click it.

    Alf

  2. #2
    Registered User
    Join Date
    02-21-2005
    Posts
    4
    Ooooh maaan. Thank you very much!! :0)


    Do you know if it is possible to see from where all ratios come from?
    From what numbers in column A.


    Many thanks!!

  3. #3
    Forum Contributor
    Join Date
    01-11-2004
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    388
    Hi!

    Sounds like progress.

    The ratios are done sequentially from the top.
    So the result in B1 is A2/A1; B2 has A3/A1 etc. for 5 cells.
    Then B6 has A1/A2; B7 has A3/A2 etc.

    The C column is similarly structured with B replacing A and C replacing B, with 30 ratios to a block.

    Alf
    Last edited by AlfD; 02-22-2005 at 10:08 AM.

  4. #4
    Registered User
    Join Date
    02-21-2005
    Posts
    4
    Many thanks Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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