Beruflich Dokumente
Kultur Dokumente
JUT LAUNCHD!
JUT LAUNCHD!
Check out the M Firt Add-in template + Online Coure which include template
with man more Rion capailitie than the one availale in thi article (include
xcel/PowerPoint/Word verion) and alo a 6 module online video coure to teach
ou how to cutomize the Rion outide of the template.
tep 1: Download m free template (I have done all the difficult, nerd tuff for ou in thi file)
tep 2: Link our macro and macro decription to the Rion utton
tep 3: Tet our utton and make ure the work
tep 4: Chooe the icon ou want to dipla (Microoft provide thouand for free!)
tep 5: ave our template a an add-in file and intall/hare
After ou've filled out the ign-up form, go check our email inox and ou hould have two email, one aking for a tep--tep
confirmation to the Guru Newletter and the other with a link to download the template ou will need to complete Intruction To Create Your
the ret of thi tutorial. Open thi file and move on to tep 2! Firt xcel Rion Add-in
4 YAR AGO
ince I onl want to create an add-in with one utton and the template hold 50 utton, I am going to want to hide
Cop & Pate Multiple xcel
the other 49 utton. To do thi, I need to navigate to the Rionetup module and then down to the GetViile
Range To eparate
uroutine. You hould ee a Cae tatement that goe through each utton name (ie mutton#) and tell the
PowerPoint lide With VA
Rion whether to how the utton (True) or hide it (Fale). ince I onl want one utton howing in the example, I'm
5 YAR AGO
going to make onl the firt utton (mutton1) have a value of True.
Now ince the utton are ectioned off into group, I can jut make the entire group not viile modifing the
144 Cae tatement dealing with group ID. In the example elow I how Group not eing viile.
Follow @ChrisMacro
The Spreadsh…
2.2K likes
Like Page
Click to enlarge
Next, let' add our macro code. I'm jut going to ue a imple piece of code that doe the Patepecial command
"Pate Value Onl" with the data currentl copied to the clipoard.
3. Add the macro name to the correponding utton name (overwriting the DummMacro name)
Click to enlarge
A great wa to help our uer or ourelf rememer what a utton doe i to include a creentip. A creentip i a
rief decription that remind the uer what a utton doe while hovering over it. You ee creentip all the time in
the normal Rion ta, ut ou ma have never noticed them. Go ahead and hover over a utton on our Home ta
and ou'll ee ome example.
Click to enlarge
To finih off thi ection we are going to go down to the GetLael uroutine within the Rionetup module. imilar
to adding a creentip, ou can add a cutom lael via thi macro that will dipla eneath our utton on the Rion.
For thi example, let' call our Ta "Compan", our group "Patepecial", and the utton "Pate Value". A hown
elow, all we need to do i navigate to the GetLael uroutine and modif the Laeling variale value to equal the
text value we want diplaed on the Rion ta.
Click to enlarge
At thi point, we have linked our macro to a utton, we've laeled the utton, and provided a creentip o our uer
know what the utton doe. The major etup piece are complete. Let' move on to tep 3!
o how do we get thee aweome icon? Well, rememer all that work I did for ou to create our hand tarting
point template? You don't have to worr aout finding the icon at all. All ou need to do i tell Microoft which
icon to ue tping out their name in our VA code. Jut navigate to the GetImage uroutine and enter in the
icon name with the repective utton line. ince our example macro deal with pating, I am going to ue the
PateValue icon.
Click to enlarge
There are a few reource out there that have the Rion icon name, ut I peronall prefer the xcel file Microoft
created called Office 2007 Icon Galler. Thi file dipla all the icon image in 9 gallerie up in the Developer ta
of the Rion. If ou hover over an image, the image' name will appear in the creenTip ox. You will need to cop
thi name veratim (it i cae enitive!) and add it into the VA macro called GetImage(), in the repective "cae"
ection. elow i how I found the Page reak icon name.
Let me a it again: the icon name I CA NITIV! o make ure ou capitalize the correct character.
Click to enlarge
A ou ma have noticed when ou firt opened up the template file, not all the icon are the ame ize. There are
two availale ize that Microoft allow ou to make our icon (large or mall). The ize of what our icon will e
i completel up to ou. You ma want to make important or heavil ued icon large, while making other icon mall
to ave pace.
To change the ize of an icon, navigate to the Getize() uroutine and impl change our repective utton to
either equal Large or mall.
You will need to ave our file and re-open it to implement the change.
Click to enlarge
In 2018, I created a more rout add-in creator template that include the following:
• Dialog Launcher
• creentip/upertip
• Online Video Coure
LARN MOR
THE VBA GUIDE TO INTERACTING WITH ... ONLINE EXCEL & VBA BLOG RESOURCES
Affiliate Program | About | Example Files