Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Manipulate cells from UDF

good morning newsgroup :-)

after searching the internet up and down withouth findind a solution, i'd
like to post my question here.

our customer needs an user defined function (UDF) in excel 2003 which is
able to manipulate the cells in the worksheet withouth returning an array.

basically we want to enter stock market symbols and field names in the
worksheet, the UDF should pick them up and populate the empty cells with the
requested data.

it works very well when the UDF returns an array, but the customer says he
doesn't want to use these array functions......:(

how can i manipulate the values of a range from the UDF directly withouth
returning an array of data ?

any help is highly appreciated :-))

thank you in advance & best wishes
-ToM-
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Manipulate cells from UDF

You can't. A UDF can return a value, or values in the case of an array, but
it cannot manipulate cells directly.

You could use worksheet change events.

--
__________________________________
HTH

Bob

"ToM201" wrote in message
...
good morning newsgroup :-)

after searching the internet up and down withouth findind a solution, i'd
like to post my question here.

our customer needs an user defined function (UDF) in excel 2003 which is
able to manipulate the cells in the worksheet withouth returning an array.

basically we want to enter stock market symbols and field names in the
worksheet, the UDF should pick them up and populate the empty cells with
the
requested data.

it works very well when the UDF returns an array, but the customer says he
doesn't want to use these array functions......:(

how can i manipulate the values of a range from the UDF directly withouth
returning an array of data ?

any help is highly appreciated :-))

thank you in advance & best wishes
-ToM-



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Manipulate cells from UDF

I'm doing the exactly same thing......
The customer may want bloomberg-like functionality.....
I'm doing this way....
The worksheet function returns the first record and stores the other
records in the internal storage like arrays..
Then, trap the SheetChange event (or other event like SheetCalculate)
and put the rest of the results.....

I'm doing this using COM add-in with native C++... but... I can't do
the event handling part correctly...
Displaying the rest of the results is ok... but, after that, EXCEL
crash....!

Please help me.... Show me how to handle SheetChange event...
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Manipulate cells from UDF

I don't do C++ I am afraid.

--
__________________________________
HTH

Bob

"sunny" wrote in message
...
I'm doing the exactly same thing......
The customer may want bloomberg-like functionality.....
I'm doing this way....
The worksheet function returns the first record and stores the other
records in the internal storage like arrays..
Then, trap the SheetChange event (or other event like SheetCalculate)
and put the rest of the results.....

I'm doing this using COM add-in with native C++... but... I can't do
the event handling part correctly...
Displaying the rest of the results is ok... but, after that, EXCEL
crash....!

Please help me.... Show me how to handle SheetChange event...



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Manipulate cells from UDF

hello :-)

thank you all for your answers. Yes that's it exactly, it should do the same
thing as the bloomberg/reuters/telekurs formulas.

I will use your inputs and try if i can make it work and post the results
here as it may help you too sunny :-)

thank you & best wishes
-ToM-

"sunny" wrote:

I'm doing the exactly same thing......
The customer may want bloomberg-like functionality.....
I'm doing this way....
The worksheet function returns the first record and stores the other
records in the internal storage like arrays..
Then, trap the SheetChange event (or other event like SheetCalculate)
and put the rest of the results.....

I'm doing this using COM add-in with native C++... but... I can't do
the event handling part correctly...
Displaying the rest of the results is ok... but, after that, EXCEL
crash....!

Please help me.... Show me how to handle SheetChange event...



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Manipulate cells from UDF

Here, I found an article about how to handle EXCEL events using MFC...

http://support.microsoft.com/kb/309301

But It seems quite different from ATL..... I'm not familiar with MFC
and I want it to be as light as possible...

Anyway it could be helpful for you..

Good luck! And I'm looking forward your successful posting.
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
I can still select & manipulate locked & protected cells in '07 Jesse Excel Worksheet Functions 1 March 12th 10 07:46 PM
How to manipulate a row with a certain value Bill Excel Programming 4 February 24th 06 01:59 PM
Search range / manipulate cells JohnW[_3_] Excel Programming 0 January 27th 06 08:06 PM
Find a specific text item and manipulate cells surrounding RichHoughton Excel Programming 1 August 5th 05 01:06 PM
Best way to manipulate CSV files Jono2000 Excel Programming 3 June 30th 05 02:38 PM


All times are GMT +1. The time now is 12: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"