New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions

How to Create an Add-In in Excel for the IDAutomationVBA Font Encoder?

It can be a pain importing the VBA each time for every project. Is there a way to create the VBA as an Add-In so that you have access to the VBA functions without having
import the file each time?

image

image


Application: Excel

05-27-14     9.8 year(s) ago    

  Report Abuse

 

Ben

Best Answer

The steps explain how to make the VBA an Add-In so that it can be used for any spreadsheet without importing it for every spreadsheet.

The example uses Excel 2013.

To create barcodes using a font, two components are required:
(1) Barcode Font
(2) Font Encoder

A font encoder is a component that takes the data that will be converted to a barcode and formats it into another form of data that the barcode font can understand. The IDAutomation VBA Macros is a free font encoder that encodes data for Excel and Access.

The tutorial assumes that IDAutomation Barcode Fonts (Demo or Sale) are downloaded and installed.

IMPORT VBA AND CREATE ADD-IN IN EXCEL

1. Download the BarcodeFunctions.zip font encoder to the desired location on your computer. If unsure of where the download is located, run a search on the computer for the name BarcodeFunctions.


2. To extract BarcodeFunctions.zip, right-click on the file and select Extract All.
image


3. To identify the location of the IDAutomationVBA.bas file that will be imported into Excel's Visual Basic Editor, navigate through the extracted BarcodeFunctions folder. Remember the location of the file.
image


4. Open Excel, select the Developer Tab.
image


5. Select Visual Basic.
image


6. To import the VBA, select File--Import File and select VBA file.
image


7. The VBA is placed in the Modules folder.
image


NOTE: Only import one instance of the IDAutomationVBA. If multiple IDAutomationVBA files (with the same file name) are in the modules folder, an "ambiguous name error" with #NAME will occur.


8. Select File--Close and Return to Microsoft Excel


9. Select File--Options--Trust Center.


10. Select Trust Center Settings.


11. Select File Block Settings.
image


12. Remove the checkmark for the Excel 2007 and later Add-In Files. It will remove the Open and Save checkmarks.

13. Select OK.


14. In the Excel Options window, select OK.


15. Select File--Save As and choose the name for the Add-In such as IDAutomationBarcode and for the Save as type, choose .xlam. It should store the file in a path similar to image



ENABLE ADD-IN IN EXCEL
The VBA Add-In will be available for every spreadsheet.

1. Open a new instance of Excel.
image


2. Select the Developer Tab.
image


3. Select Add-Ins.
image


4. Choose the created Add-In and select OK.
image


5. Continue tutorial after Step 8.


Posted 9.8 year(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.

Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2021 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook