Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Offset function

If you are using this in the worksheet such as

=Test2(A1)

then you are correct, a user defined function used in a worksheet can not
change the value of other cells or change the excel environment - it can
only return a value to the cell in which it is located.

--
Regards,
Tom Ogilvy


"Alex" wrote in message
om...
Hi all,
I am looking of a way to get a cell address and then relative to that
cell enter a value in a neighbouring cell
I tried this but it doesn't work. I have looked at other peoples posts
but haven't found anyone that answers this question. Please look at
this simple code and help if you can.

/////////

Function Test2(CellA As Range) As String

CellA.Offset(0, 5).Value = 333
Test2 = "Blabla"

End Function

//////////

Thanks in advance,
Alex



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
large function result as reference for offset function Z Excel Discussion (Misc queries) 1 May 5th 09 12:55 AM
XL2002 - OFFSET function and LARGE function Trevor Williams Excel Worksheet Functions 3 March 3rd 08 01:40 PM
offset and Sum function yshridhar Excel Worksheet Functions 8 July 17th 07 09:34 AM
Offset Function jagbabbra Excel Worksheet Functions 0 May 17th 06 10:24 AM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM


All times are GMT +1. The time now is 09:49 PM.

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"