Darren Bartrup
Well-known Member
- Joined
- Mar 13, 2006
- Messages
- 1,296
- Office Version
-
- 365
- Platform
-
- Windows
Hi all,
I've got a puzzle and I don't even know how to begin thinking it through.
The code below creates a chart object on the active sheet.
Is there a way to convert the Left and Top values (are they twips?) into row and column numbers, taking into account that rows and columns could be different heights and widths, so I can place the top left of the chart in, say, row 4 column 2?
And for a bonus puzzler - make it 4 column wide by 8 rows high? - or am I just taking the #*!$ now?
I've done so much work on this project, and this is the final step (creating the charts from the automatically gathered data).
Lots of brownie points, slaps on the back and resentful sneers coming my way if I get it to work
Thanks for your help in advance.
Darren.
I've got a puzzle and I don't even know how to begin thinking it through.
The code below creates a chart object on the active sheet.
Code:
Sub CreateChart()
Dim chtObject As ChartObject
Set chtObject = ActiveSheet.ChartObjects.Add _
(Left:=100, Width:=500, Top:=75, Height:=400)
End Sub
Is there a way to convert the Left and Top values (are they twips?) into row and column numbers, taking into account that rows and columns could be different heights and widths, so I can place the top left of the chart in, say, row 4 column 2?
And for a bonus puzzler - make it 4 column wide by 8 rows high? - or am I just taking the #*!$ now?
I've done so much work on this project, and this is the final step (creating the charts from the automatically gathered data).
Lots of brownie points, slaps on the back and resentful sneers coming my way if I get it to work
Thanks for your help in advance.
Darren.