|
-
Jun 25th, 2007, 11:43 AM
#1
Thread Starter
Hyperactive Member
Runtime Error 91
When i run this code i get this error
Runtime Error 91:
Object variable or With block variable not set.
on this line:
Code:
xp.Folder.Copy App.Path & "\appfiles\", "C:\Program Files\"
Does anybody know what is up with this code.
Thanks in advance
Chris1990
If your question is answered then mark your thread RESOLVED and give credit to whoever answered it.
If you fail, try and try again, its the only way to success.
-
Jun 25th, 2007, 12:07 PM
#2
Re: Runtime Error 91
Chris,
Code:
xp.Folder.Copy App.Path & "\appfiles\", "C:\Program Files\"
I think if you can post few lines above the above line of code, would be help full.
-
Jun 25th, 2007, 12:42 PM
#3
Re: Runtime Error 91
It means you are trying to use an object and vb doesn't know where or what the object is. I am guessing it is the xp thing. You have to add a reference to some objects or use the complete "object path"
-
Jun 25th, 2007, 12:56 PM
#4
Re: Runtime Error 91
Where did you define and instanciate xp?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|