![]() |
#9
|
|||
|
|||
![]()
Hi Greg
You were getting errors in the userform initialise module because you were trying to sum the whole of columns L and N. L1 and N1 contain text which caused it to throw errors. I've changed the ranges to go from row 3 to the last used row of those columns. The userform shows when the button is pressed, but doesn't do anything. With the worksheet change code it appears you want to check the dropdowns in column C for the word Mileage. I changed the code to do that & for demo purposes, put the formula in column O. It's probably not the final product but should hopefully set you in the right direction. I didn't know what all the original code was for, but it did look a bit over complicated for such a simple task. Or have I got it wrong lol Cheers Phil |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
cyraxote | Word VBA | 16 | 09-08-2015 04:16 AM |
Run Time Error '91': Object variable or With block variable not set using Catalogue Mailmerge | Berryblue | Mail Merge | 1 | 11-13-2014 05:36 PM |
![]() |
JUST ME | Word VBA | 4 | 03-25-2014 06:56 AM |
![]() |
MJP143 | Excel | 1 | 02-11-2013 05:07 AM |
![]() |
tinfanide | Excel Programming | 2 | 06-10-2012 10:17 AM |