Moonrise/Moonset formula

Ormus

Board Regular
Joined
Nov 1, 2011
Messages
92
I have found the VBA code that I can do sunrise/sunset, but have not been able to locate one for moonrise/moonset.

Thanks
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Yah I saw that post earlier but does not give or direct to where the macro would be. I have the moon phase working, that is easy, but am needing the moonrise and moonset time based on your lat/lon. kd4dna posted on that thread that he had made the script, but did not post it.
 
Upvote 0
You may not find one specifically written in VBA so I searched for algorithms for this. If you look for the algorithm you may find a description of how to code it or possibly find it in another language that you can convert. Using this approach I found this site (http://aa.usno.navy.mil/faq/docs/rs_algor.php) which refers to another (http://www.skyandtelescope.com/resources/software/3304911.html) and says that there is a BASIC program for doing this called MOONUP.BAS. Unfortunately it's not listed there any more. However these sites may give you other leads.

Good luck!
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,733
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top