VBA code to change Hijri date to gegorian and gegorian date to Hijri ( Help please)

bmarroush

Board Regular
Joined
Feb 2, 2016
Messages
102
Hi

I want a VBA code to fill column B with Geogrian Date and Column D with Hijri date

Thanks in advance

Excel 2013
Serial ABCD
114/01/1439 01-Jan-16
214/01/1440 02-Jan-16
314/01/1441 03-Jan-16
414/01/1442 04-Jan-16
514/01/1443 05-Jan-16
614/01/1444 06-Jan-16
714/01/1445 07-Jan-16
814/01/1446 08-Jan-16
Sheet1
<colgroup><col width="120" style="width: 90pt; mso-width-source: userset; mso-width-alt: 4388;"> <col width="99" style="width: 74pt; mso-width-source: userset; mso-width-alt: 3620;"> <col width="88" style="width: 66pt; mso-width-source: userset; mso-width-alt: 3218;" span="3"> <tbody> </tbody>
 

Some videos you may like

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Why do the Hijri dates start in 1439 and increment by one year while the Gregorian dates start in 2016 and increment by one day?
 

bmarroush

Board Regular
Joined
Feb 2, 2016
Messages
102
Hi Andrew

Thanks for the reply

Actually i just put it as an example to have a continous change but i will change it once i insert the VBA code

Really appreciated if you can help me over this

Thanks in advance
 

bmarroush

Board Regular
Joined
Feb 2, 2016
Messages
102
Thansk Andrew

Sry but i didnt get it you :( All what i need is a VBA code which let me able to change all Hijri dates i have in my sheet to gregorian

Thansk
 

Watch MrExcel Video

Forum statistics

Threads
1,123,057
Messages
5,599,545
Members
414,316
Latest member
ExcelLee

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
Top