PC Review


Reply
Thread Tools Rate Thread

Getting text and grid at a 45 degree angle

 
 
clemsongirl
Guest
Posts: n/a
 
      7th Jul 2008
I'm trying to create an affordance structure matrix (if anyone actually knows
what that is!). It has a regular grid and then a grid above it, rotated 45
degrees. I know how to rotate the text, but that only gives me the grid lines
for half of the grid. When I change the grid lines to diagonal, I can't put
marks in all of the squares. Can you do what I want in Excel or do I have to
use a drawing program?
 
Reply With Quote
 
 
 
 
Andy Pope
Guest
Posts: n/a
 
      8th Jul 2008
Hi,

It may be possible to draw the gridlines and markers using additional series
plotted as xy scatter chart.
If you need more help can you post a link to an example of one of these
chart styles?

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"clemsongirl" <(E-Mail Removed)> wrote in message
news:A2EA82C6-03CA-4B0F-B578-(E-Mail Removed)...
> I'm trying to create an affordance structure matrix (if anyone actually
> knows
> what that is!). It has a regular grid and then a grid above it, rotated 45
> degrees. I know how to rotate the text, but that only gives me the grid
> lines
> for half of the grid. When I change the grid lines to diagonal, I can't
> put
> marks in all of the squares. Can you do what I want in Excel or do I have
> to
> use a drawing program?


 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      8th Jul 2008
http://en.wikipedia.org/wiki/Image:A...of_Quality.png

Check the peak at the top of the "house", and the smaller addition on the
left wing.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Andy Pope" <(E-Mail Removed)> wrote in message
news:724B6284-6A05-4FE8-A498-(E-Mail Removed)...
> Hi,
>
> It may be possible to draw the gridlines and markers using additional
> series plotted as xy scatter chart.
> If you need more help can you post a link to an example of one of these
> chart styles?
>
> Cheers
> Andy
>
> --
>
> Andy Pope, Microsoft MVP - Excel
> http://www.andypope.info
> "clemsongirl" <(E-Mail Removed)> wrote in message
> news:A2EA82C6-03CA-4B0F-B578-(E-Mail Removed)...
>> I'm trying to create an affordance structure matrix (if anyone actually
>> knows
>> what that is!). It has a regular grid and then a grid above it, rotated
>> 45
>> degrees. I know how to rotate the text, but that only gives me the grid
>> lines
>> for half of the grid. When I change the grid lines to diagonal, I can't
>> put
>> marks in all of the squares. Can you do what I want in Excel or do I have
>> to
>> use a drawing program?

>



 
Reply With Quote
 
Andy Pope
Guest
Posts: n/a
 
      8th Jul 2008
Thanks for that link Jon.

So it should be possible, but not easy, to create those lines and
markers using a fistful of additional xy series.

Cheers
Andy

Jon Peltier wrote:
> http://en.wikipedia.org/wiki/Image:A...of_Quality.png
>
> Check the peak at the top of the "house", and the smaller addition on the
> left wing.
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Tutorials and Custom Solutions
> Peltier Technical Services, Inc. - http://PeltierTech.com
> _______
>
>
> "Andy Pope" <(E-Mail Removed)> wrote in message
> news:724B6284-6A05-4FE8-A498-(E-Mail Removed)...
>
>>Hi,
>>
>>It may be possible to draw the gridlines and markers using additional
>>series plotted as xy scatter chart.
>>If you need more help can you post a link to an example of one of these
>>chart styles?
>>
>>Cheers
>>Andy
>>
>>--
>>
>>Andy Pope, Microsoft MVP - Excel
>>http://www.andypope.info
>>"clemsongirl" <(E-Mail Removed)> wrote in message
>>news:A2EA82C6-03CA-4B0F-B578-(E-Mail Removed)...
>>
>>>I'm trying to create an affordance structure matrix (if anyone actually
>>>knows
>>>what that is!). It has a regular grid and then a grid above it, rotated
>>>45
>>>degrees. I know how to rotate the text, but that only gives me the grid
>>>lines
>>>for half of the grid. When I change the grid lines to diagonal, I can't
>>>put
>>>marks in all of the squares. Can you do what I want in Excel or do I have
>>>to
>>>use a drawing program?

>>

>
>


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      8th Jul 2008
Maybe draw diagonal lines over cells if(?) the idea is something along the
lines of putting some symbols in the grid. Then use the Camara method (copy
range, Shift-Edit, Paste picture link), to place the diamond cell grid over
the chart or some other range, positioned as needs.

A little macro to draw the lines -
In a new sheet, for testing, experiment with rTopLeft, 'wide', row/column
heights, and some appropriate Font

Sub DiamondRoof()
Dim i As Long, j As Long, cnt As Long
Dim wide As Long
Dim L2 As Double, T2 As Double
Dim rTopLeft As Range, c1 As Range, c2 As Range
Dim shps As Shapes, shLine As Shape

'uncomment for testing
' ActiveSheet.Lines.Delete
' ActiveSheet.GroupObjects.Delete

Set rTopLeft = Range("B2") '<< CHange, where to put it
wide = 9 '<< Change, how big

Set shps = ActiveSheet.Shapes

With rTopLeft

With .Resize(wide + 1, wide * 2 + 1)
.Borders.LineStyle = xlNone
.Interior.ColorIndex = xlAutomatic ' remove gridlines
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.ColumnWidth = 2.38 ' << adjust
.RowHeight = 17.25 ' << adjust
End With

For i = 1 To wide + 1

' up to right line
Set c1 = .Cells(wide + 2, i * 2 - 1)
Set c2 = .Cells(i, wide + i)
With c2
L2 = .Left + .Width / 2
T2 = .Top + .Height / 2
End With
With c1
Set shLine = shps.AddLine(.Left, .Top, L2, T2)
End With

' down to right line
Set c1 = .Cells(wide + 2, i * 2)
Set c2 = .Cells(wide + 2 - i, i)
With c2
L2 = .Left + .Width / 2
T2 = .Top + .Height / 2
End With
With c1
Set shLine = shps.AddLine(.Left, .Top, L2, T2)
End With
Next

Set c1 = .Cells(wide + 2, 1)
Set c2 = .Cells(wide + 2, wide * 2 + 2)

With c2
L2 = .Left
T2 = .Top
End With

' bottom line
With c1
Set shLine = shps.AddLine(.Left, .Top, L2, T2)
End With

End With


ReDim arr(1 To wide * 2 + 3)
cnt = shps.Count
j = 0
For i = cnt - (wide * 2 + 3) + 1 To cnt
j = j + 1
arr(j) = i
Next

With shps.Range(arr)
.Line.ForeColor.SchemeColor = 7 + 16
' any other formats
.Group
End With

End Sub

Regards,
Peter T



"Andy Pope" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks for that link Jon.
>
> So it should be possible, but not easy, to create those lines and
> markers using a fistful of additional xy series.
>
> Cheers
> Andy
>
> Jon Peltier wrote:
> > http://en.wikipedia.org/wiki/Image:A...of_Quality.png
> >
> > Check the peak at the top of the "house", and the smaller addition on

the
> > left wing.
> >
> > - Jon
> > -------
> > Jon Peltier, Microsoft Excel MVP
> > Tutorials and Custom Solutions
> > Peltier Technical Services, Inc. - http://PeltierTech.com
> > _______
> >
> >
> > "Andy Pope" <(E-Mail Removed)> wrote in message
> > news:724B6284-6A05-4FE8-A498-(E-Mail Removed)...
> >
> >>Hi,
> >>
> >>It may be possible to draw the gridlines and markers using additional
> >>series plotted as xy scatter chart.
> >>If you need more help can you post a link to an example of one of these
> >>chart styles?
> >>
> >>Cheers
> >>Andy
> >>
> >>--
> >>
> >>Andy Pope, Microsoft MVP - Excel
> >>http://www.andypope.info
> >>"clemsongirl" <(E-Mail Removed)> wrote in message
> >>news:A2EA82C6-03CA-4B0F-B578-(E-Mail Removed)...
> >>
> >>>I'm trying to create an affordance structure matrix (if anyone actually
> >>>knows
> >>>what that is!). It has a regular grid and then a grid above it, rotated
> >>>45
> >>>degrees. I know how to rotate the text, but that only gives me the grid
> >>>lines
> >>>for half of the grid. When I change the grid lines to diagonal, I can't
> >>>put
> >>>marks in all of the squares. Can you do what I want in Excel or do I

have
> >>>to
> >>>use a drawing program?
> >>

> >
> >

>
> --
>
> Andy Pope, Microsoft MVP - Excel
> http://www.andypope.info



 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      9th Jul 2008
Keep in mind the OP is probably using "chart" to refer to a tabular data
range. This kind of display is more suited to a worksheet solution, with
some embedded graphics.

(Yes, I've tried to create this kind of display in Excel, and no, I don't
have anything to share.)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Peter T" <peter_t@discussions> wrote in message
news:(E-Mail Removed)...
> Maybe draw diagonal lines over cells if(?) the idea is something along the
> lines of putting some symbols in the grid. Then use the Camara method
> (copy
> range, Shift-Edit, Paste picture link), to place the diamond cell grid
> over
> the chart or some other range, positioned as needs.
>
> A little macro to draw the lines -
> In a new sheet, for testing, experiment with rTopLeft, 'wide', row/column
> heights, and some appropriate Font
>
> Sub DiamondRoof()
> Dim i As Long, j As Long, cnt As Long
> Dim wide As Long
> Dim L2 As Double, T2 As Double
> Dim rTopLeft As Range, c1 As Range, c2 As Range
> Dim shps As Shapes, shLine As Shape
>
> 'uncomment for testing
> ' ActiveSheet.Lines.Delete
> ' ActiveSheet.GroupObjects.Delete
>
> Set rTopLeft = Range("B2") '<< CHange, where to put it
> wide = 9 '<< Change, how big
>
> Set shps = ActiveSheet.Shapes
>
> With rTopLeft
>
> With .Resize(wide + 1, wide * 2 + 1)
> .Borders.LineStyle = xlNone
> .Interior.ColorIndex = xlAutomatic ' remove gridlines
> .HorizontalAlignment = xlCenter
> .VerticalAlignment = xlCenter
> .ColumnWidth = 2.38 ' << adjust
> .RowHeight = 17.25 ' << adjust
> End With
>
> For i = 1 To wide + 1
>
> ' up to right line
> Set c1 = .Cells(wide + 2, i * 2 - 1)
> Set c2 = .Cells(i, wide + i)
> With c2
> L2 = .Left + .Width / 2
> T2 = .Top + .Height / 2
> End With
> With c1
> Set shLine = shps.AddLine(.Left, .Top, L2, T2)
> End With
>
> ' down to right line
> Set c1 = .Cells(wide + 2, i * 2)
> Set c2 = .Cells(wide + 2 - i, i)
> With c2
> L2 = .Left + .Width / 2
> T2 = .Top + .Height / 2
> End With
> With c1
> Set shLine = shps.AddLine(.Left, .Top, L2, T2)
> End With
> Next
>
> Set c1 = .Cells(wide + 2, 1)
> Set c2 = .Cells(wide + 2, wide * 2 + 2)
>
> With c2
> L2 = .Left
> T2 = .Top
> End With
>
> ' bottom line
> With c1
> Set shLine = shps.AddLine(.Left, .Top, L2, T2)
> End With
>
> End With
>
>
> ReDim arr(1 To wide * 2 + 3)
> cnt = shps.Count
> j = 0
> For i = cnt - (wide * 2 + 3) + 1 To cnt
> j = j + 1
> arr(j) = i
> Next
>
> With shps.Range(arr)
> .Line.ForeColor.SchemeColor = 7 + 16
> ' any other formats
> .Group
> End With
>
> End Sub
>
> Regards,
> Peter T
>
>
>
> "Andy Pope" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Thanks for that link Jon.
>>
>> So it should be possible, but not easy, to create those lines and
>> markers using a fistful of additional xy series.
>>
>> Cheers
>> Andy
>>
>> Jon Peltier wrote:
>> > http://en.wikipedia.org/wiki/Image:A...of_Quality.png
>> >
>> > Check the peak at the top of the "house", and the smaller addition on

> the
>> > left wing.
>> >
>> > - Jon
>> > -------
>> > Jon Peltier, Microsoft Excel MVP
>> > Tutorials and Custom Solutions
>> > Peltier Technical Services, Inc. - http://PeltierTech.com
>> > _______
>> >
>> >
>> > "Andy Pope" <(E-Mail Removed)> wrote in message
>> > news:724B6284-6A05-4FE8-A498-(E-Mail Removed)...
>> >
>> >>Hi,
>> >>
>> >>It may be possible to draw the gridlines and markers using additional
>> >>series plotted as xy scatter chart.
>> >>If you need more help can you post a link to an example of one of these
>> >>chart styles?
>> >>
>> >>Cheers
>> >>Andy
>> >>
>> >>--
>> >>
>> >>Andy Pope, Microsoft MVP - Excel
>> >>http://www.andypope.info
>> >>"clemsongirl" <(E-Mail Removed)> wrote in message
>> >>news:A2EA82C6-03CA-4B0F-B578-(E-Mail Removed)...
>> >>
>> >>>I'm trying to create an affordance structure matrix (if anyone
>> >>>actually
>> >>>knows
>> >>>what that is!). It has a regular grid and then a grid above it,
>> >>>rotated
>> >>>45
>> >>>degrees. I know how to rotate the text, but that only gives me the
>> >>>grid
>> >>>lines
>> >>>for half of the grid. When I change the grid lines to diagonal, I
>> >>>can't
>> >>>put
>> >>>marks in all of the squares. Can you do what I want in Excel or do I

> have
>> >>>to
>> >>>use a drawing program?
>> >>
>> >
>> >

>>
>> --
>>
>> Andy Pope, Microsoft MVP - Excel
>> http://www.andypope.info

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how make an angle to show in degree, minute,second instead of degree EXCEL NEWS Microsoft Excel Programming 4 28th Apr 2008 08:02 AM
degree or angle =?Utf-8?B?ZWtrZWluZG9oYQ==?= Microsoft Excel Worksheet Functions 3 29th Jan 2007 02:54 PM
Imputting an angle degree. Degree, minute, second =?Utf-8?B?R3JhaGFt?= Microsoft Excel Misc 6 19th Oct 2006 04:07 PM
Imputting an angle degree. Degree, minute, second =?Utf-8?B?R3JhaGFt?= Microsoft Excel Worksheet Functions 1 13th Oct 2006 08:58 PM
type at a 45 degree angle Paul Bouchard Microsoft Word Document Management 3 6th Oct 2003 03:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:57 PM.