Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Thorny VBA problem. Any creative solution appreciated.

I understand that functions can only modify the cell they are called
from. However, if anyone has a solution to this problem, I would
greatly appreciate it.

A function F(N) does a vlookup in a table and returns a value.

If it cannot find N in the table, I want to add N to a list in
another table.

F() is called from an addin if that is relevant.

Any creative solution appreciated.

Thanks
Jeff Stryer

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Thorny VBA problem. Any creative solution appreciated.

Your only solution is likely to be to use something along the lines of
an event procedure (such as "calculate") instead of a UDF.


If F() is called from an add-in, then where is the table to be
modifed? In the activeworkbook?

Tim.


wrote in message
oups.com...
I understand that functions can only modify the cell they are called
from. However, if anyone has a solution to this problem, I would
greatly appreciate it.

A function F(N) does a vlookup in a table and returns a value.

If it cannot find N in the table, I want to add N to a list in
another table.

F() is called from an addin if that is relevant.

Any creative solution appreciated.

Thanks
Jeff Stryer



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Thorny VBA problem. Any creative solution appreciated.

Yes, the table to be modified is in the active workbook.

Tim Williams wrote:
Your only solution is likely to be to use something along the lines

of
an event procedure (such as "calculate") instead of a UDF.


If F() is called from an add-in, then where is the table to be
modifed? In the activeworkbook?

Tim.


wrote in message
oups.com...
I understand that functions can only modify the cell they are called
from. However, if anyone has a solution to this problem, I would
greatly appreciate it.

A function F(N) does a vlookup in a table and returns a value.

If it cannot find N in the table, I want to add N to a list in
another table.

F() is called from an addin if that is relevant.

Any creative solution appreciated.

Thanks
Jeff Stryer


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default Thorny VBA problem. Any creative solution appreciated.

Hi Jeff

I understand that functions can only modify the cell they are called
from. However, if anyone has a solution to this problem, I would
greatly appreciate it.

A function F(N) does a vlookup in a table and returns a value.

If it cannot find N in the table, I want to add N to a list in
another table.

F() is called from an addin if that is relevant.

Any creative solution appreciated.


You might be able to adapt one of my posts on Dick Kusleika's 'Daily
Dose of Excel' blog:

http://www.dicks-blog.com/archives/2...hat-do-things/

Regards

Stephen Bullen
Microsoft MVP - Excel
www.oaltd.co.uk


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
.. any help appreciated .. i think it's a pasting HTML problem. Agent C Excel Discussion (Misc queries) 1 January 26th 06 09:49 PM
Looking for a creative sol'n to sales region map Sprite8 Excel Discussion (Misc queries) 1 January 3rd 06 02:40 PM
Thorny problem graphing XAxis dates Don Charts and Charting in Excel 4 September 22nd 05 04:06 AM
Thorny Problem No Name Excel Programming 2 July 24th 04 10:00 PM
Stubborn Link Data/Value Problem - Help Appreciated! Jax[_2_] Excel Programming 4 January 5th 04 11:53 PM


All times are GMT +1. The time now is 01:53 PM.

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

About Us

"It's about Microsoft Excel"