View Single Post
Old 02-06-2012, 07:09 PM   #437
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
Quote:
Originally Posted by Gauthier View Post
Correction for the parent folder selection issue I have.
replace
Thanks!!

I've updated the BC 2007 with your updates. There where a few differences in the code you suggested and what I used here is a list below. Also would you please download the zip I've attached to this post and see if it works in your MS Word 2010

DIFF
Used
Code:
#If Win64 Then 

instead of 
#If VBA7 Then
Since the real difference is the 32bit vs 64 bit and not VBA7 vs older VBA


>>>
I think there was a bug in the code you provded
Code:
        strPFPath = VBA.Environ("ProgramFiles(x86)")
        If strPFPath = "" Then
            strPFPath = VBA.Environ("ProgramFiles")
        End If
            setCalibrePath strPFPath + "\Calibre"
        End If
I think you meant to say

strPFPath = VBA.Environ("ProgramFiles(x86)")
Code:
        If strPFPath = "" Then
            strPFPath = VBA.Environ("ProgramFiles")
        End If
        
        setCalibrePath strPFPath + "\Calibre"

Also I removed the Sleep function since it was not used in the code.


Quote:
Originally Posted by Gauthier View Post
Making drop down in the ribbonUI is not very difficult, I remember doing it for some access project.
<group ...>
<menu id="..." label="" imageMso="..." itemSize="..." >
<button ... />
<button ... />
</menu>
</group>

Creating a button on the fly is not possible, at best you can hide and show those you defined in the Custom UI.xml
Awesome!! That did it.

Question is there any way I could group a button and menu item together so I could get

<Word Wrap ...v>

Where if the user presses the word "Word Wrap a method is executed and if the user presses the "v" menu button a drop down menu appears.

For further reference the "Add-Ons" ribbon has the features I'm looking for


=X=
Attached Files
File Type: zip BookCreator_2007_v3.05.01.zip (220.0 KB, 1058 views)

Last edited by =X=; 02-06-2012 at 07:13 PM. Reason: Added file
=X= is offline   Reply With Quote