+ Reply to Thread
Results 1 to 3 of 3

Function with results in offset cell

  1. #1
    Andibevan
    Guest

    Function with results in offset cell

    Is it possible to build a function that will place one half of the result in
    the active cell (as normal - cell where the formula is) and another part of
    the result in the cell to the right of the active one?

    Something like this (which doesn't work incidentally):-

    Function testoff(var)
    testoff = var + 10
    ActiveCell.Offset(1, 1).Value = 1


    End Function



  2. #2
    Norman Jones
    Guest

    Re: Function with results in offset cell

    Hi Andi,

    If your intentention is to use the function in a worksheet, this is not
    possible as a udf can only return a value to the calling cell.

    ---
    Regards,
    Norman



    "Andibevan" <[email protected]> wrote in message
    news:[email protected]...
    > Is it possible to build a function that will place one half of the result
    > in
    > the active cell (as normal - cell where the formula is) and another part
    > of
    > the result in the cell to the right of the active one?
    >
    > Something like this (which doesn't work incidentally):-
    >
    > Function testoff(var)
    > testoff = var + 10
    > ActiveCell.Offset(1, 1).Value = 1
    >
    >
    > End Function
    >
    >




  3. #3
    Andibevan
    Guest

    Re: Function with results in offset cell

    Thought so - just was hoping...

    Thanks

    "Norman Jones" <[email protected]> wrote in message
    news:[email protected]...
    Hi Andi,

    If your intentention is to use the function in a worksheet, this is not
    possible as a udf can only return a value to the calling cell.

    ---
    Regards,
    Norman



    "Andibevan" <[email protected]> wrote in message
    news:[email protected]...
    > Is it possible to build a function that will place one half of the result
    > in
    > the active cell (as normal - cell where the formula is) and another part
    > of
    > the result in the cell to the right of the active one?
    >
    > Something like this (which doesn't work incidentally):-
    >
    > Function testoff(var)
    > testoff = var + 10
    > ActiveCell.Offset(1, 1).Value = 1
    >
    >
    > End Function
    >
    >





+ 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