Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with Excel VB macro...


Hi,

I'm working on a macro that will auto-gerate a Pie Chat based upon
list of data. This list of data can vary from being 2 rows to 100
Being utterly useless at Excel VB, is there a simple loop that wil
find the first and last points of the data?

i.e

---A----B
1 data1 4
2 data2 6
3 data3 2
4 data4 5
5 data5 88

So it then figures out that the data range is A1:B5

What do i then need to change in the function below, to look at th
range it has just found in the above search?

ActiveChart.SetSourceData Source:=Sheets("Sheet1").Range("A1:B5")
PlotBy _
:=xlColumns

Thanks
David Evan


-
David Evan
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message667064.htm

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
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 3 February 5th 07 08:22 PM
passing arguments from an excel macro to a word macro KWE39 Excel Discussion (Misc queries) 1 July 7th 05 03:56 PM


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