excel vba to figure out the time for shabbat or yom tov

BORUCH

Well-known Member
Joined
Mar 1, 2016
Messages
550
Office Version
  1. 365
Platform
  1. Windows
hi

I'm looking for an excel vba that can figure out the Shabbat or yom tov candle lighting times in new York city, by city by looking up a certain date

any help is appreciated
 
You might try this Mcode in Power Query weekly. Once created, then on a weekly basis Refresh the query. It will give the current week information and the following week.

Power Query:
let
    Source = Web.BrowserContents("https://www.chabad.org/calendar/candlelighting_cdo/locationId/10023/locationType/2/jewish/Candle-Lighting.htm"),
    #"Extracted Table From Html" = Html.Table(Source, {{"Column1", ".secular_date"}, {"Column2", ".jewish_date"}, {"Column3", ".align_right .bold"}, {"Column4", ".time"}}, [RowSelector=".day"]),
    #"Filtered Rows" = Table.SelectRows(#"Extracted Table From Html", each ([Column3] = "Light Candles at"))
in
    #"Filtered Rows"
 
Upvote 0
You might try this Mcode in Power Query weekly. Once created, then on a weekly basis Refresh the query. It will give the current week information and the following week.

Power Query:
let
    Source = Web.BrowserContents("https://www.chabad.org/calendar/candlelighting_cdo/locationId/10023/locationType/2/jewish/Candle-Lighting.htm"),
    #"Extracted Table From Html" = Html.Table(Source, {{"Column1", ".secular_date"}, {"Column2", ".jewish_date"}, {"Column3", ".align_right .bold"}, {"Column4", ".time"}}, [RowSelector=".day"]),
    #"Filtered Rows" = Table.SelectRows(#"Extracted Table From Html", each ([Column3] = "Light Candles at"))
in
    #"Filtered Rows"
Hi
I would rather some udf function if it's possible
 
Upvote 0

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