User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 426,974 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,413 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 2111 | Replies: 5
Reply
Join Date: Sep 2005
Posts: 16
Reputation: grandfilth is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
grandfilth grandfilth is offline Offline
Newbie Poster

degrees minutes and seconds

  #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...
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2005
Location: Montreal, QC (Almost)
Posts: 130
Reputation: Yomet is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 9
Yomet Yomet is offline Offline
Junior Poster

Re: degrees minutes and seconds

  #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, 21 views)
Reply With Quote  
Join Date: Sep 2005
Posts: 16
Reputation: grandfilth is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
grandfilth grandfilth is offline Offline
Newbie Poster

Re: degrees minutes and seconds

  #3  
Nov 21st, 2005
just found this, its quite neat...
http://www.cpearson.com/excel/latlong.htm
Reply With Quote  
Join Date: Nov 2005
Location: Montreal, QC (Almost)
Posts: 130
Reputation: Yomet is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 9
Yomet Yomet is offline Offline
Junior Poster

Re: degrees minutes and seconds

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

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

Re: degrees minutes and seconds

  #5  
Jul 8th, 2007
Can i use this in excel 2003 and if so how?
Reply With Quote  
Join Date: Nov 2005
Location: Montreal, QC (Almost)
Posts: 130
Reputation: Yomet is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 9
Yomet Yomet is offline Offline
Junior Poster

Re: degrees minutes and seconds

  #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, 4 views)
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

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

All times are GMT -4. The time now is 1:29 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC