Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Can't run macro as normal user

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Can't run macro as normal user

The problem is probably this line:
Dim objF As frmObjectives

It should be: Dim objF As UserForm
or: Dim objF As Object

Hth,
Merjet

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit a template from normal user activity hmm Excel Discussion (Misc queries) 0 April 12th 07 04:26 PM
Can't run macro as normal user Joel Excel Programming 0 February 15th 07 02:50 PM
Control not showing normal user Gabi Tianu Excel Programming 0 October 27th 06 10:14 AM
How may I macro update a normal distribution chart from new data? Mike Williams Charts and Charting in Excel 4 September 11th 06 01:20 PM
How to: User Form to assign a user defined range to a macro variab TrevTrav Excel Programming 1 March 22nd 05 07:57 PM


All times are GMT +1. The time now is 02:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"