Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 7th, 2003, 03:47 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Excel VBA: Select range of data and plot chart?


I have this sample excel spreadsheet:
http://viet.ws/chart.xls

The original columns are "Time", "Pressure" and "Diff. Pressure".

I would like to build a macro to do the following things:

- Mark "HP-Start" if the max Pressure is found (within HP range) and mark "HP-End" when it reaches the last "HP" cell in this block.

- Set counter = 0:00:00 in column "Time" and the increment is 3.
- Set counter = 0 in column "Diff. Pressure" but the next cell will a calculation (the formula is shown in the above excel worksheet)

- Finally, plot column "Time" and column "Diff. Pressure"

Note: This sample is one of blocks I have in my Excel. How do I write a macro to loop the whole worksheet?
Please help.

Thanks,
XT


 
Old December 23rd, 2003, 04:21 AM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Record a macro that dows your stuff and change it as you will.
Peace






Similar Threads
Thread Thread Starter Forum Replies Last Post
Coloring the chart plot area based on x-axis scale simranjeev Reporting Services 1 October 25th, 2007 02:50 PM
plot bar chart in a web page pratik28 .NET Framework 2.0 1 April 23rd, 2007 03:54 AM
Method Range - VBA - Excel teatimer Beginning VB 6 0 May 22nd, 2006 03:50 AM
Aligning two chart plot areas - simple but tricky! Alseikhan Excel VBA 0 March 20th, 2006 07:18 PM
How to plot data from an array in a line chart ! Alseikhan Excel VBA 0 January 27th, 2006 12:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.