# macro;complex formula

1. ### Excel Worksheet to Auto fill using Macro

Hi, I'm fairly new to using VBA in excel, I have a table in worksheet owssvr(1) this is a data dump from the SharePoint connection I put from a custom list and I will be running the macro from a command button on the 'Main Menu' worksheet. I'm just needing the macro to do the following: 1)...
2. ### tranform a complex formula to a user defined formula

hi, i have the following formula to calculate the difference in days, hours, minutes, seconds between 2 dates (excluding the weekends and the holydays). =IF(NETWORKDAYS(A3+1,B3-1)<0,0,NETWORKDAYS(A3+1,B3-1))+IF(WEEKDAY(A3,2)>5,0,1-(A3-TRUNC(A3)))+IF(WEEKDAY(B3,2)>5,0,B3-TRUNC(B3)) the A3 in...

### 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.

### Which adblocker are you using?

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

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