degrees minutes and seconds

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2005
Posts: 16
Reputation: grandfilth is an unknown quantity at this point 
Solved Threads: 0
grandfilth grandfilth is offline Offline
Newbie Poster

degrees minutes and seconds

 
0
  #1
Nov 20th, 2005
Is it possible to format a cell so that an angle in degrees can be shown as an angle in degrees minutes and seconds? Any help would be much appreciated...
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 134
Reputation: Yomet is an unknown quantity at this point 
Solved Threads: 10
Yomet Yomet is offline Offline
Junior Poster

Re: degrees minutes and seconds

 
0
  #2
Nov 21st, 2005
Hi grandfilth,

I tried to format a control for degrees minutes and seconds and, just like you, could not do it. So I made these two little routines that will do the job for you, one converting from decmal degrees to degrees, minutes and seconds and the other converting back to decimal degrees.

Remember that this is a 20 min job so everything might not be perfect.

Hope this helps

Yomet
Attached Files
File Type: zip DegMinSec.zip (1.6 KB, 25 views)
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 16
Reputation: grandfilth is an unknown quantity at this point 
Solved Threads: 0
grandfilth grandfilth is offline Offline
Newbie Poster

Re: degrees minutes and seconds

 
0
  #3
Nov 21st, 2005
just found this, its quite neat...
http://www.cpearson.com/excel/latlong.htm
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 134
Reputation: Yomet is an unknown quantity at this point 
Solved Threads: 10
Yomet Yomet is offline Offline
Junior Poster

Re: degrees minutes and seconds

 
0
  #4
Nov 21st, 2005
Cool page, thanks for the link.

Yomet
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1
Reputation: Andrew** is an unknown quantity at this point 
Solved Threads: 0
Andrew** Andrew** is offline Offline
Newbie Poster

Re: degrees minutes and seconds

 
0
  #5
Jul 8th, 2007
Can i use this in excel 2003 and if so how?
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 134
Reputation: Yomet is an unknown quantity at this point 
Solved Threads: 10
Yomet Yomet is offline Offline
Junior Poster

Re: degrees minutes and seconds

 
0
  #6
Jul 11th, 2007
Andrew,

I don't see why you could not use it in XL 2003. Just copy-paste the two conversion functions into a module and then call them from the spreadsheet.

I tested it in the attached spreadsheet (XL 2000), remember to check your macro security settings.


Yomet
Attached Files
File Type: zip Book2.zip (7.5 KB, 7 views)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 2617 | Replies: 5
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC