by aubweaver » Tue Jul 19, 2011 1:26 am
Hi Steven,
Thanks for your input. As I said earlier my VBA knowledge is limited (overstatement). However, I did move the last 'enable_events' to outside the 'If' statement, excel didn't throw a wobbly so I guess it was ok. The first one couldn't be moved i.e I wasn't too sure what other changes I needed to make. Anyway I gave it a go with the last one moved and nothing. This macro was/is being used by another forum member without any issues, so I guess I theoretically shouldn't need to make any adjustments other than my own requirements. As I mentioned initially, I have built the odd macro which work but only if I key anything into any cell afterwards ie cause an event. Which brought me back to this macro after Mark informed that I needed to use a BA refresh/update to trigger a macro automatically, he also forwarded me the link to a previous forum question and the resulting info'.
Yesterday however when I was trying anything that came into my head, I shut everything down and restarted the computer reopened and loaded BA/excel etc.etc. and the macro fired ..?! That is it cleared the 'flags', the first command,(at least it's a start) but that was the only time, unless I shut down the system each time!! I've checked my security settings, macro settings etc. but all seems good , I think it will be a lot of trial and error.
Thanks again,
Peter.