LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Custom button starts new instance of Excel

I've seen this before. I assume you users have Office 2007. In that
version, if your code is run from a click event rather than being run
directly by excel based on the value of the OnAction property of the button,
you need to set the Cancel paramter to true even though the button is not a
built-in feature of Excel.

" wrote:

hi,
if the user can run the macro from the menu, that (to me)
zeros in on the form.
the file name appearing in front of the macro name
indicate that the macro is not in the active file. at
least on my pc. if i have 2 files open both with macros,
the macro box shows only the macro name of the macros in
the active file but show both file and macro names of the
inactive file.
i am still on 2k so i not sure how squirlly 2002 and 2003
is.

-----Original Message-----
This has me stumped, so any help will be deeply

appreciated!

I built a form that creates a custom toolbar when the

file opens to allow
the user to run macros. Recently several new users have

reported a series of
errors when they click any of the custom buttons. I

can't reproduce it on my
computer but the errors sound like the buttons are trying

to run the macros
from a different workbook that doesn't exist. The users

are prompted to
"Enable Macros" a second time and then get a message that

the macro can't be
found. The users can, however, run the macro directly

from the menu options,
just not from the custom buttons.

When I open the Assign Macro box, I see the current file

name as a path in
front of the macro name. Could that be causing the

problem? I remember,
sometime in the past, seeing only the macro name (no file

name) in the Assign
Macro box.

I've used either Excel 2003 or Excel 2002 to edit the

file, depending on
which office I'm working in. I've tried setting the

macro assignment to
"This Workbook only", but the file name is still there.

On my computer(s),
the file name does change when I rename the file, so the

buttons still find
the right macro to run.

I haven't pinned down a common attribute for the all

users who have this
error, but several work on US Government sites which have

many security
restrictions on software. Is it possible that network

security is affecting
the connection between the button and the macro?

Any ideas?

Thanks,
EllenR
.


 
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
Excel E-2007 starts, but Installer also starts 3 times??? Thanks for the Great Tip Setting up and Configuration of Excel 0 January 24th 10 03:21 AM
2003 - 2007 custom macro and custom button restore. Scott Sornberger Excel Discussion (Misc queries) 11 May 23rd 08 02:41 PM
distributing an Excel custom button [email protected] Excel Discussion (Misc queries) 2 March 28th 07 02:12 PM
Can I make a custom button in Excel for the Group feature? Lisa Excel Worksheet Functions 1 December 20th 04 09:34 PM
Delete a custom button by holding down the ALT key and dragging the button off the toolbar Stephen[_8_] Excel Programming 0 April 4th 04 02:22 PM


All times are GMT +1. The time now is 08:09 PM.

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

About Us

"It's about Microsoft Excel"