• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 91
  • Last Modified:

Excel 2013 custom toolbar loading

I have a custom toolbar that is created via an addin. The addin is stored in the Roaming addins folder under my use profile and should load whenever Excel opens.
Since switching to 2013 (64 bit) I have noticed that the addin performs fine unless I use right click from the taskbar to open a recent file. If another version of Excel was open with the addin loaded the addin is there but if the right click was the first instance of excel opened the addin fails to load.

Does anyone know why this might be and how I can prevent it?
0
Epipgx
Asked:
Epipgx
  • 4
  • 2
1 Solution
 
ProfessorJimJamCommented:
what was your previous version of Excel before switching to 64bit 2013? was it   Excel 2010 32 bit? or  Excel 2013 32 bit?  which one?

most of the add-ins support 32bit version?  is it a commerial add-in? it has a name?
0
 
EpipgxAuthor Commented:
I was on 2007 32-bit. It is an addin I have written to create a toolbar to allow quick access to lots of macros called ExcelMacroBar.xlam.
0
 
ProfessorJimJamCommented:
did you use the VBA7 declation in your addin?

#if Vba7 then
'  Code is running in the new VBA7 editor
     #if Win64 then
     '  Code is running in 64-bit version of Microsoft Office
     #else
     '  Code is running in 32-bit version of Microsoft Office
     #end if
#else
' Code is running in VBA version 6 or earlier
#end if
 
#If Vba7 Then
Declare PtrSafe Sub...
#Else
Declare Sub...
#EndIf
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
EpipgxAuthor Commented:
No and the addin loads and works perfectly except in that one very specific instance
0
 
EpipgxAuthor Commented:
I have figured it out for some reason the analysis toolpak VBA addin was on and under right click it failed to load. I have disabled that an all functions normally.

Really appreciate your efforts ProffessorJimJam
0
 
Zack BarresseCEOCommented:
To be clear, you don't need to use conditional compilation unless you want different code bits to be compiled for different constants/architectures (whatever the constants refer to). So long as you don't have anything that won't run in 32-bit and 64-bit there's no need for it at all. If you're using API's that won't compile the same in 64-bit as they do in 32-bit then you're fine. You can even use the PtrSafe in 32-bit so long as it's VBA7 (2010 or later).

Zack
0
 
EpipgxAuthor Commented:
the original question was a setup error not something an expert could have offered advice on.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now