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>
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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?
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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