PC Review


Reply
Thread Tools Rate Thread

Arctangent problem

 
 
Dan Tabla
Guest
Posts: n/a
 
      24th Mar 2009
I have few line segments as a graphic between points described by coordinates
(x,y) and I would like to align labels along each graphic segment with the
segment description. I was trying to use arctangent function but something is
wrong.
Any suggestion?

30 cm
A(x1,y1)______________________________B(x2,y2)
 
Reply With Quote
 
 
 
 
Bernard Liengme
Guest
Posts: n/a
 
      24th Mar 2009
Is the problem with ATAN or with aligning?
Please give us more info so we can help
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Dan Tabla" <(E-Mail Removed)> wrote in message
news:B3B5ABFC-C229-4510-9D1D-(E-Mail Removed)...
> I have few line segments as a graphic between points described by
> coordinates
> (x,y) and I would like to align labels along each graphic segment with the
> segment description. I was trying to use arctangent function but something
> is
> wrong.
> Any suggestion?
>
> 30 cm
> A(x1,y1)______________________________B(x2,y2)



 
Reply With Quote
 
Dan Tabla
Guest
Posts: n/a
 
      24th Mar 2009
Sorry for the delayed answer..
I recorded a macro to see how it works and everthing is OK but:

Sub rotates()
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = Worksheets("Sheet1").Cells(1, 1)
' cell (1,1) =DEGREES(ATAN(B1/B2))
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = True
End With
End Sub

when I changed .Orientation= Atn (1) didn't work and didn't even gave an
error.
The script runs without an error or result.
I know that after I'll solve this problem I have to follow this algorithm...
http://www.arctangent.net/atan.html

Any suggestions? Seems too difficult for me for such a little job!!

Thank all of you and specialy to Bernard V Liengme!
PS. I have problem seeing OfficeLive page ..so sorry for delayed answers!

"Bernard Liengme" wrote:

> Is the problem with ATAN or with aligning?
> Please give us more info so we can help
> best wishes
> --
> Bernard V Liengme
> Microsoft Excel MVP
> http://people.stfx.ca/bliengme
> remove caps from email
>
>
> "Dan Tabla" <(E-Mail Removed)> wrote in message
> news:B3B5ABFC-C229-4510-9D1D-(E-Mail Removed)...
> > I have few line segments as a graphic between points described by
> > coordinates
> > (x,y) and I would like to align labels along each graphic segment with the
> > segment description. I was trying to use arctangent function but something
> > is
> > wrong.
> > Any suggestion?
> >
> > 30 cm
> > A(x1,y1)______________________________B(x2,y2)

>
>
>

 
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
problem after problem after problem - winXP wont start! =?Utf-8?B?TWF2aXJpY2s=?= Windows XP Help 2 23rd Apr 2006 02:55 PM
Problems With Adaptec 2400a RAID Card. (rare problem ? ? ? or Common Problem...? ? ?) Starz_Kid Computer Hardware 0 28th Dec 2005 05:36 AM
hibernation problem! problem!, Power Option problem! Farzad Hayati Microsoft Windows 2000 Hardware 2 5th Feb 2004 10:22 PM
hibernation problem! problem!, Power Option problem! Farzad Hayati Microsoft Windows 2000 Advanced Server 2 5th Feb 2004 10:22 PM
Outlook 2002 connector: problem connecting with Domino server because of NAMELookup2 problem Jean-Paul Smeets Microsoft Outlook 2 26th Sep 2003 10:17 AM


Features
 

Advertising
 

Newsgroups
 


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