![]() |
|
#1
|
|||
|
|||
|
Hello all,
I am having trouble with Run-time error 91, I created the code in a document by it self it worked fine. once i moved it over to my actual project it gives me the run-time error 91 and i have spend hours trying to determine why it works when it's the only code in a document but not when i put in in my project with all the other codes. the error occures on "userform1.show vbmodeless. does anyone have any suggestions? Code:
Private Sub Document_Open() Application.WindowState = wdWindowStateMinimize UserForm1.Show vbModeless End Sub |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help sumif with variable for VBA | jingo | Excel Programming | 4 | 01-23-2014 11:02 AM |
object variable or with block variable not set
|
MJP143 | Excel | 1 | 02-11-2013 05:07 AM |
Run-time error '91': Object variable or With block variable not set
|
tinfanide | Excel Programming | 2 | 06-10-2012 10:17 AM |
| XML parsing & Object variable not set (Error 91) | tinfanide | Excel Programming | 0 | 12-29-2011 08:43 AM |
| Variable fields? | Emalee77 | PowerPoint | 0 | 01-30-2011 05:58 PM |