+ Reply to Thread
Results 1 to 10 of 10

Circle-function

  1. #1
    Registered User
    Join Date
    06-13-2007
    Location
    Västervik, Sweden
    Posts
    42

    Exclamation Circle-function

    New problem, hopefully new solution.

    Gonna try to explain this: I one colum(A1) where i specify the hight of one certain object. In the colum(A2) below I want to write another hight AND get that number to be A1-A2. The problem here is that i want to write one hight AND get the answer from the function in the same colum, possible?

    Thanks in advance

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by chojje
    New problem, hopefully new solution.

    Gonna try to explain this: I one colum(A1) where i specify the hight of one certain object. In the colum(A2) below I want to write another hight AND get that number to be A1-A2. The problem here is that i want to write one hight AND get the answer from the function in the same colum, possible?

    Thanks in advance
    Hi,

    If you rightmouse the sheet tab, select View Code, and paste
    Please Login or Register  to view this content.
    into there it should do that.

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    06-13-2007
    Location
    Västervik, Sweden
    Posts
    42
    Quote Originally Posted by Bryan Hessey
    Hi,

    If you rightmouse the sheet tab, select View Code, and paste
    Please Login or Register  to view this content.
    into there it should do that.

    hth
    ---
    Thanks for your help man but i dont think we are working in the same prog here :P I´m just working in standard Excel and cant write in any "Private Sub" etc

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by chojje
    Thanks for your help but i dont think we are working in the same prog here, I´m just working in standard Excel and can't write in any "Private Sub" etc
    Excel.exe operates on Workbooks, which have Worksheets, which have Columns, Rows, and Cells as the intersection between Column and Row.

    note that A1 and A2 are Cells, not columns.

    At the bottom of the sheet is a small tab with the sheet name, probably Sheet1

    rightmouse in that tab and follow my first post.

    ---

  5. #5
    Registered User
    Join Date
    06-13-2007
    Location
    Västervik, Sweden
    Posts
    42
    Quote Originally Posted by Bryan Hessey
    Excel.exe operates on Workbooks, which have Worksheets, which have Columns, Rows, and Cells as the intersection between Column and Row.

    note that A1 and A2 are Cells, not columns.

    At the bottom of the sheet is a small tab with the sheet name, probably Sheet1

    rightmouse in that tab and follow my first post.

    ---
    haha ow nice, found it, thanks man Just one more question: I´m not using A1 and A2, instead the real cells is E6-E7, how should i then change the thing u sent me? ( Never worked with this before, so please flame me )
    Last edited by chojje; 06-25-2007 at 05:22 AM.

  6. #6
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by chojje
    found it, thanks, Just one more question: I´m not using A1 and A2, instead the real cells is E6-E7, how should I then change the thing you sent me?
    cells E6 & E7 would be

    Cells(7, 5).Value = Cells(6, 5).Value - Cells(7, 5).Value

    ---

  7. #7
    Registered User
    Join Date
    06-13-2007
    Location
    Västervik, Sweden
    Posts
    42
    Quote Originally Posted by Bryan Hessey
    cells E6 & E7 would be

    Cells(7, 5).Value = Cells(6, 5).Value - Cells(7, 5).Value

    ---
    Worked, thanks man But where does this 5 comes from, so i dont have to ask more in the future?
    Last edited by chojje; 06-25-2007 at 06:44 AM.

  8. #8
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by chojje
    Worked, thanks man But where does this 5 comes from, so i dont have to ask more in the future?
    did you change the test to

    If Target.Address = "$E$7" Then

    or are you still testing $A$2 ?
    ---

  9. #9
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Bryan Hessey
    did you change the test to

    If Target.Address = "$E$7" Then

    or are you still testing $A$2 ?
    ---
    5 = 5th column

    ---

  10. #10
    Registered User
    Join Date
    06-13-2007
    Location
    Västervik, Sweden
    Posts
    42

    Talking

    Quote Originally Posted by Bryan Hessey
    5 = 5th column

    ---
    Ye i did, thanks Alright i get the picture.
    How do i do if i want a similair "ekvation" but just with different Cells? Cuz i did put/copied another one just below it and filled with other cells and got "worksheet_Change" error :/
    Last edited by chojje; 06-25-2007 at 07:52 AM.

+ 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