PC Review


Reply
Thread Tools Rate Thread

Can't run macro as normal user

 
 
=?Utf-8?B?SGVucmlrIENocmlzdGlhbnNlbg==?=
Guest
Posts: n/a
 
      15th Feb 2007
Hi all

I have this odd problem. One of our users can't run a macro in a Excel XP
spreadsheet. She's getting an Run-time error '1004' Application-defined or
object-defined error. When I log on with my administrative account on the
same Pc the macro runs fine.

What could be the cause of that?

Kind Regards
Henrik
 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      15th Feb 2007
A '1004' error is essentially meaningless. It is a generic error that means
"something went wrong but I'm not going to tell you what". Any one of
hundreds of things could cause a 1004 error. Post the code in question and
indicate what line of code causes the error.

You don't need to post the entire procedure. Narrow it down to the critical
10 or so lines (with variable declarations) that can be copy/pasted in to
the VBA Editor. Mark which line causes the problem.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)



"Henrik Christiansen" <(E-Mail Removed)> wrote
in message news:CFA701D6-39BC-4AAF-A0FF-(E-Mail Removed)...
> Hi all
>
> I have this odd problem. One of our users can't run a macro in a Excel XP
> spreadsheet. She's getting an Run-time error '1004' Application-defined or
> object-defined error. When I log on with my administrative account on the
> same Pc the macro runs fine.
>
> What could be the cause of that?
>
> Kind Regards
> Henrik



 
Reply With Quote
 
=?Utf-8?B?SGVucmlrIENocmlzdGlhbnNlbg==?=
Guest
Posts: n/a
 
      15th Feb 2007
Hi Joel

Thanks for the help. I think you are absolutely right,... it is a permission
problem.

Kind Regards
Henrik


"Joel" wrote:

> I don't how to solve this problem. It look like the person doesn't have
> permission to open a form. It probably an administrator account problem and
> not an excel. problem.
>
> Try moving the excel worksheet to a directory that the person has full
> priviledges.
>
> "Henrik Christiansen" wrote:
>
> > Hi Joel
> >
> > Hmm.. it does'nt seem like that. When we get the error message I click on
> > the "debug" button:
> >
> > The code looks like this:
> >
> > Sub LaunchMainForm()
> > Dim objF As frmObjectives
> >
> > If giNumberOfOpenForms < 0 Then giNumberOfOpenForms = 0
> >
> > If giNumberOfOpenForms = 0 Then
> > Set objF = New frmObjectives <- Error on this line, frmObjectives is a
> > userform
> > objF.Show False
> > Set objF = Nothing
> > End If
> > End Sub
> >
> > /Henrik
> >
> >
> > "Joel" wrote:
> >
> > > The macro is probably access some files that she doesn't have permission to
> > > access. Open up the visual basic editor under the tools macro window. the
> > > program should stop when it gets to the errror. Move the mouse over the
> > > different variables to see what file name has the problem.
> > >
> > > "Henrik Christiansen" wrote:
> > >
> > > > Hi all
> > > >
> > > > I have this odd problem. One of our users can't run a macro in a Excel XP
> > > > spreadsheet. She's getting an Run-time error '1004' Application-defined or
> > > > object-defined error. When I log on with my administrative account on the
> > > > same Pc the macro runs fine.
> > > >
> > > > What could be the cause of that?
> > > >
> > > > Kind Regards
> > > > Henrik

 
Reply With Quote
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      15th Feb 2007
The macro is probably access some files that she doesn't have permission to
access. Open up the visual basic editor under the tools macro window. the
program should stop when it gets to the errror. Move the mouse over the
different variables to see what file name has the problem.

"Henrik Christiansen" wrote:

> Hi all
>
> I have this odd problem. One of our users can't run a macro in a Excel XP
> spreadsheet. She's getting an Run-time error '1004' Application-defined or
> object-defined error. When I log on with my administrative account on the
> same Pc the macro runs fine.
>
> What could be the cause of that?
>
> Kind Regards
> Henrik

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Black Screen After Log In for One User but Other User Is Normal! Jim Windows Vista General Discussion 0 12th Jun 2010 08:53 PM
Import macro from Normal.dot to 2007 Normal.dot? =?Utf-8?B?UmViZWNjYSBNb3JyaXM=?= Microsoft Word Document Management 12 10th Aug 2007 06:30 AM
RE: Can't run macro as normal user =?Utf-8?B?SGVucmlrIENocmlzdGlhbnNlbg==?= Microsoft Excel Programming 1 15th Feb 2007 03:06 PM
RE: Can't run macro as normal user =?Utf-8?B?Sm9lbA==?= Microsoft Excel Programming 0 15th Feb 2007 02:50 PM
Normal.dot & macro? Greg Strong Microsoft Word Document Management 4 28th Sep 2004 02:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:19 AM.