![]() |
|
#1
|
||||
|
||||
![]() The randomiser works for me but I changed it slightly to test. Code:
lngIndex = Int((16) * Rnd) MsgBox lngIndex & vbCr & strQuotes(lngIndex) Could your issue be due to the timing of the AutoOpen macro actually running prior to the opening document becoming the 'ActiveDocument'?
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Auto-update field codes in Outlook Template - AutoOpen Macro not working | victoriasun | Outlook | 5 | 12-22-2015 01:54 AM |
Update a summary chart when I update a dashboard with dates | cangelis | Excel | 6 | 09-24-2014 08:08 AM |
![]() |
scarymovie | Word VBA | 5 | 05-16-2012 07:05 PM |
Textbox Template | t0m46 | Word | 0 | 09-07-2010 03:38 AM |
![]() |
Joshocom | Word | 1 | 03-16-2010 05:03 PM |