Hello I am currently stumped on trying to get an IF statement with varying parameters working. I just started VBA programming yesterday so the program is quite brute force. The last FOR loop in my code with the embedded IF statement I am trying to simulate this command: =IF(AO3>B3, B3+1-AO3, B3-AO3) which seems to not work in VBA. I am trying to subtract 7 hours from a 24 hour clock, it works on times that end up positive but spits out times that are negative (using 1904 time).
I have also tried substituting "AO" & j and "B" & j with Cells(41,j).value and Cells(2,j).value but I started getting 1002 errors.
Any help would be appreciated!
-karl
Bookmarks