PC Review


Reply
Thread Tools Rate Thread

Add-In Excel Locked Up

 
 
lesleyann76@gmail.com
Guest
Posts: n/a
 
      3rd Jun 2008
I created an Add-In Using Excel 2003, maintained in a password-
protected project and have had many people using it without any
problems.


However, I have given it to a new user and it causes the entire Excel
application to stop functioning.

The user tells me that none of his menu bars work and the only option
he has it to close the application.

Could this be because he may be using a different version of Excel
than which I created the add-in from?
Or, something else, perhaps?

Thanks for your help.
Coby.

 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      3rd Jun 2008
Coby,
You don't provide enough information for anyone to provide any
real help. The answers to your two questions are... Yes and Yes.

Posting your code along with the Excel version on the problem
machine would get things going.
You would also need to explain in general terms what your code
is intended to do. (including if it modifies toolbars/menubars)
Note that Excel 2007 does not have a menubar or toolbars.

Also, there should be error handling in code provided to others to use.
The errors displayed would have been the place to start to in determine the problem.

Starting fresh in a new post with the extra information may be the way to go.
This post now has an answer (mine) and others may ignore additional
questions posted to it.
--
Jim Cone
Portland, Oregon USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



<(E-Mail Removed)>
wrote in message
I created an Add-In Using Excel 2003, maintained in a password-
protected project and have had many people using it without any
problems.
However, I have given it to a new user and it causes the entire Excel
application to stop functioning.

The user tells me that none of his menu bars work and the only option
he has it to close the application.

Could this be because he may be using a different version of Excel
than which I created the add-in from?
Or, something else, perhaps?
Thanks for your help.
Coby.

 
Reply With Quote
 
lesleyann76@gmail.com
Guest
Posts: n/a
 
      3rd Jun 2008
On Jun 2, 6:04 pm, lesleyan...@gmail.com wrote:
> I created an Add-In Using Excel 2003, maintained in a password-
> protected project and have had many people using it without any
> problems.
>
> However, I have given it to a new user and it causes the entire Excel
> application to stop functioning.
>
> The user tells me that none of his menu bars work and the only option
> he has it to close the application.
>
> Could this be because he may be using a different version of Excel
> than which I created the add-in from?
> Or, something else, perhaps?
>
> Thanks for your help.
> Coby.


 
Reply With Quote
 
lesleyann76@gmail.com
Guest
Posts: n/a
 
      3rd Jun 2008
On Jun 2, 7:22 pm, "Jim Cone" <james.cone...@comcast.netXXX> wrote:
> Coby,
> You don't provide enough information for anyone to provide any
> real help. The answers to your two questions are... Yes and Yes.
>
> Posting your code along with the Excel version on the problem
> machine would get things going.
> You would also need to explain in general terms what your code
> is intended to do. (including if it modifies toolbars/menubars)
> Note that Excel 2007 does not have a menubar or toolbars.
>
> Also, there should be error handling in code provided to others to use.
> The errors displayed would have been the place to start to in determine the problem.
>
> Starting fresh in a new post with the extra information may be the way to go.
> This post now has an answer (mine) and others may ignore additional
> questions posted to it.
> --
> Jim Cone
> Portland, Oregon USAhttp://www.realezsites.com/bus/primitivesoftware
> (Excel Add-ins / Excel Programming)
>
> <lesleyan...@gmail.com>
> wrote in message
> I created an Add-In Using Excel 2003, maintained in a password-
> protected project and have had many people using it without any
> problems.
> However, I have given it to a new user and it causes the entire Excel
> application to stop functioning.
>
> The user tells me that none of his menu bars work and the only option
> he has it to close the application.
>
> Could this be because he may be using a different version of Excel
> than which I created the add-in from?
> Or, something else, perhaps?
> Thanks for your help.
> Coby.


Yes.
Your response was very helpful and has lead me to solve the problem.
You mentioned error handling, I looked it up, implemented it,
encountered a problem and fixed it from there.

This is why the forum is great. I was vague because the user had
provided me with very little info to go off of, you didn't feel you
could be very helpful, yet you lead me to the solution.

For that, I thank you Jim Cone. And, below is my code where I forgot
to set my XlTools variable because I was jumping over it with a GoTo
command.

Thanks, again.
Coby.

 
Reply With Quote
 
lesleyann76@gmail.com
Guest
Posts: n/a
 
      3rd Jun 2008
On Jun 3, 6:53 am, lesleyan...@gmail.com wrote:
> On Jun 2, 7:22 pm, "Jim Cone" <james.cone...@comcast.netXXX> wrote:
>
>
>
> > Coby,
> > You don't provide enough information for anyone to provide any
> > real help. The answers to your two questions are... Yes and Yes.

>
> > Posting your code along with the Excel version on the problem
> > machine would get things going.
> > You would also need to explain in general terms what your code
> > is intended to do. (including if it modifies toolbars/menubars)
> > Note that Excel 2007 does not have a menubar or toolbars.

>
> > Also, there should be error handling in code provided to others to use.
> > The errors displayed would have been the place to start to in determine the problem.

>
> > Starting fresh in a new post with the extra information may be the way to go.
> > This post now has an answer (mine) and others may ignore additional
> > questions posted to it.
> > --
> > Jim Cone
> > Portland, Oregon USAhttp://www.realezsites.com/bus/primitivesoftware
> > (Excel Add-ins / Excel Programming)

>
> > <lesleyan...@gmail.com>
> > wrote in message
> > I created an Add-In Using Excel 2003, maintained in a password-
> > protected project and have had many people using it without any
> > problems.
> > However, I have given it to a new user and it causes the entire Excel
> > application to stop functioning.

>
> > The user tells me that none of his menu bars work and the only option
> > he has it to close the application.

>
> > Could this be because he may be using a different version of Excel
> > than which I created the add-in from?
> > Or, something else, perhaps?
> > Thanks for your help.
> > Coby.

>
> Yes.
> Your response was very helpful and has lead me to solve the problem.
> You mentioned error handling, I looked it up, implemented it,
> encountered a problem and fixed it from there.
>
> This is why the forum is great. I was vague because the user had
> provided me with very little info to go off of, you didn't feel you
> could be very helpful, yet you lead me to the solution.
>
> For that, I thank you Jim Cone. And, below is my code where I forgot
> to set my XlTools variable because I was jumping over it with a GoTo
> command.
>
> Thanks, again.
> Coby.



Sub Mount_CoreConsole()
Dim Ms As CommandBarControl
Dim amb As CommandBar
Dim XlTools As CommandBarPopup
Dim CoreCons As CommandBarButton
Dim T As Long


On Error GoTo Err_Handle



Application.ScreenUpdating = False

Set amb = CommandBars.ActiveMenuBar


For Each Ms In amb.Controls
If Ms.Caption = "&Jonce Thomas Tools" Then
T = Ms.Index
GoTo Mount_Core
End If
Next

'INSTALL A TOOLS MENU if MsExcel Doesn't have one
Set XlTools = amb.Controls.Add(Type:=msoControlPopup,
Temporary:=True)
XlTools.Caption = "&Jonce Thomas Tools"

Set XlTools = amb.Controls("&Jonce Thomas Tools")

'Mount Core Console to Tools menu
Mount_Core:


'LL SORT BUTTON
Set CoreCons = XlTools.CommandBar.Controls _
.Add(Type:=msoControlButton, ID:=1)
With CoreCons
.Caption = "Sort Long List"
.TooltipText = "Sorts Jonce Thomas Construction Long List"
.Style = msoButtonCaption
.OnAction = "SortLongList"
End With



'About BUTTON
Set CoreCons = XlTools.CommandBar.Controls _
.Add(Type:=msoControlButton, ID:=1)
With CoreCons
.Caption = "About Version"
.TooltipText = ""
.Style = msoButtonCaption
.OnAction = "Pop_VersionInfo"
End With

Err_Handle:
MsgBox Err.Number & " " & Err.Description


End Sub


Thanks for your help.
Coby.
 
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
Text Box Locked in Excel stoz Microsoft Excel Misc 0 11th Jun 2009 07:09 PM
HELP - keyboard locked in excel =?Utf-8?B?UmVuZWU=?= Microsoft Excel Misc 1 6th Jul 2006 08:53 PM
Excel 2003 when closing Excel after having opened a project locked for viewing.. password prompt??? braindead Microsoft Excel Misc 0 25th Mar 2005 01:58 PM
please help! excel locked hollidaydoc1 Microsoft Excel Misc 0 30th Sep 2003 01:41 AM
Locked Out Of Excel Erik Microsoft Excel Setup 1 13th Sep 2003 02:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:40 PM.