![]() |
|
|
|
#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 |
|
|
|
Similar Threads
|
||||
| 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 |
Display result in textbox based on the input of another textbox
|
scarymovie | Word VBA | 5 | 05-16-2012 07:05 PM |
| Textbox Template | t0m46 | Word | 0 | 09-07-2010 03:38 AM |
Making a Macro "autoopen"
|
Joshocom | Word | 1 | 03-16-2010 05:03 PM |