Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Function with results in offset cell

Thought so - just was hoping...

Thanks

"Norman Jones" wrote in message
...
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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Offset VLOOKUP results boardbug Excel Discussion (Misc queries) 2 December 5th 09 09:44 PM
Compare Cell Values, Offset(-1,0), Offset(-1,-1), and xlFillDefaul RyGuy Excel Worksheet Functions 2 September 28th 07 10:54 PM
IF function results not displayed in cell mrcpuhead Excel Worksheet Functions 1 July 7th 07 07:55 PM
Offset Function works in cell, not in named range DragonslayerApps Excel Worksheet Functions 0 July 25th 05 04:39 PM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM


All times are GMT +1. The time now is 02:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"