Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default How to chart data generated in a macro in any desired sheet. Pleas

For Urgent attention please.

1. How do I plot data generated in a Function macro. Assume that I generated
a data range which I need to be plotted on a sheet.

I have 300 points to be plotted,say. the problem arises because I CANn't use
the following command to paste data generated while running a Function.

Cells(i + 10, j + 2).Value = spread(i, j) - does not work in a function
..works in a Sub.

Why
--
beetal
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How to chart data generated in a macro in any desired sheet. Pleas

Functions return values to the cells that contain the formula. They can't
change the values in other cells.

Maybe you can rewrite your function so that it returns an array and you can use
a multi-cell array formula to to enter the formula.

Or maybe you could a macro that you run on demand to populate the cells.

Or maybe you could use some worksheet event that populates the cells.

BEETAL wrote:

For Urgent attention please.

1. How do I plot data generated in a Function macro. Assume that I generated
a data range which I need to be plotted on a sheet.

I have 300 points to be plotted,say. the problem arises because I CANn't use
the following command to paste data generated while running a Function.

Cells(i + 10, j + 2).Value = spread(i, j) - does not work in a function
.works in a Sub.

Why
--
beetal


--

Dave Peterson
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
How Can I set the TAB to move only in the desired fields on sheet Vimal Excel Worksheet Functions 3 February 11th 09 08:56 PM
How to chart values generated in a macro in any desired sheet. Ple BEETAL Excel Programming 0 December 24th 08 06:34 AM
Adding hyperlinks to macro-generated sheets from list of sheet nam klysell Excel Programming 0 July 26th 07 08:04 PM
how to turn of a series in data sheet of a power point chart using macro chepyalarr Excel Programming 1 February 2nd 06 07:06 PM
hiding all data in a sheet except desired _Bigred Excel Worksheet Functions 1 March 9th 05 04:33 PM


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