How to convert excel numbers in barcode in excel sheet


"Excel VBA Help"

 


Play Friv Now - Play Friv Games
Go Back   The Code Cage Forums > Microsoft Topics > Microsoft Excel Forum
Our Info Pages:-
The Code Cage - Microsoft Office help

Notices

Microsoft Excel Forum Members Post questions in this forum if they are related to using Microsoft Excel, this includes Worksheet Functions, Excel VBA Programming, Simple Macro Code & Charting, Excel formula etc.

 
 
Thread Tools Rate Thread Display Modes
  #1  
Old 21st May 2012, 08:00
sonu3310's Avatar
sonu3310 sonu3310 is offline
Junior Member
MS Office Version: MS Office 2003
MS Office Skill Level: Some Formulae experience
 
Join Date: May 2012
Location: Dubai
Age: 34
Posts: 4
Posts Per Day: 0.00
My Top Tip Count: 0
Thanks to others: 0
Thanked 0 Times in 0 Posts
Reputation: 10 (6) sonu3310 is on a distinguished road
United_Arab_Emirates
Post How to convert excel numbers in barcode in excel sheet
     Excel: General   


------ Register to get rid of these "In Post" ads! ------

Category: Excel: General   

Hi, I have attached the file where I want to convert numbers into the barcodes, please refer to some easy formula or formating.
Attached Files To view attachments in this forum your post count must be 2 or greater. You currently have 0 posts.



The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!

  #2  
Old 21st May 2012, 08:55
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
Administrator
MS Office Version: MS Office 97 - 2013
MS Office Skill Level: Can use most of MS Office
 
Join Date: Aug 2008
Location: Manchester, England
Age: 53
Posts: 11,884
Posts Per Day: 3.48
My Top Tip Count: 11
Thanks to others: 49
Thanked 442 Times in 426 Posts
Reputation: 6670 (194) Simon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond repute
11 Top Tips
Wales
Default Re: How to convert excel numbers in barcode in excel sheet

------ Register to get rid of these "In Post" ads! ------


I responded to the other thread you posted in, try following this Using the Barcode Font in Microsoft Excel (Spreadsheet)
__________________
Regards,
Simon Lloyd
Microsoft Office Help

Want to say thanks? then hit this How to say thanks! button in any post you want to thank
If you find one of my posts helpful then hit this one Helpful Answer in the post that helped most!





  #3  
Old 21st May 2012, 09:05
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
Administrator
MS Office Version: MS Office 97 - 2013
MS Office Skill Level: Can use most of MS Office
 
Join Date: Aug 2008
Location: Manchester, England
Age: 53
Posts: 11,884
Posts Per Day: 3.48
My Top Tip Count: 11
Thanks to others: 49
Thanked 442 Times in 426 Posts
Reputation: 6670 (194) Simon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond repute
11 Top Tips
Wales
Default Re: How to convert excel numbers in barcode in excel sheet

------ Register to get rid of these "In Post" ads! ------


Just trolling the internet i came across a free one Free Barcode Font - Code 39 - Not a demo, COMPLETELY free
__________________
Regards,
Simon Lloyd
Microsoft Office Help

Want to say thanks? then hit this How to say thanks! button in any post you want to thank
If you find one of my posts helpful then hit this one Helpful Answer in the post that helped most!





The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!

  #4  
Old 21st May 2012, 09:34
sonu3310's Avatar
sonu3310 sonu3310 is offline
Junior Member
MS Office Version: MS Office 2003
MS Office Skill Level: Some Formulae experience
 
Join Date: May 2012
Location: Dubai
Age: 34
Posts: 4
Posts Per Day: 0.00
My Top Tip Count: 0
Thanks to others: 0
Thanked 0 Times in 0 Posts
Reputation: 10 (6) sonu3310 is on a distinguished road
United_Arab_Emirates
Default Re: How to convert excel numbers in barcode in excel sheet

------ Register to get rid of these "In Post" ads! ------


Hi, I have ddownloaded the file but don't know how to use this with my excel file, I have attached the excel file also, is it possible for you to attach the file with the solution, it will be great. Thank you



  #5  
Old 21st May 2012, 19:04
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
Administrator
MS Office Version: MS Office 97 - 2013
MS Office Skill Level: Can use most of MS Office
 
Join Date: Aug 2008
Location: Manchester, England
Age: 53
Posts: 11,884
Posts Per Day: 3.48
My Top Tip Count: 11
Thanks to others: 49
Thanked 442 Times in 426 Posts
Reputation: 6670 (194) Simon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond repute
11 Top Tips
Wales
Default Re: How to convert excel numbers in barcode in excel sheet

------ Register to get rid of these "In Post" ads! ------


You simply install the font on your pc, enter your numbers in excel like *1234* (and they need the asterisk as it states) then change the font of the cell to barcode found in your fonts.
__________________
Regards,
Simon Lloyd
Microsoft Office Help

Want to say thanks? then hit this How to say thanks! button in any post you want to thank
If you find one of my posts helpful then hit this one Helpful Answer in the post that helped most!





  #6  
Old 25th June 2012, 07:02
maxshakh's Avatar
maxshakh maxshakh is offline
Junior Member
MS Office Version: MS Office 97, 2003, 2007,2010
MS Office Skill Level: Can use VBA
 
Join Date: Mar 2012
Location: Ariel, Israel
Age: 42
Posts: 1
Posts Per Day: 0.00
My Top Tip Count: 0
Thanks to others: 0
Thanked 0 Times in 0 Posts
Reputation: 10 (0) maxshakh is on a distinguished road
Isreal
Default Re: How to convert excel numbers in barcode in excel sheet

------ Register to get rid of these "In Post" ads! ------


Sorry, but not so simply.. You must know which of dozen types of barcodes you need and write a conversion algorithm

For example, code to convert number like "1234567890" to Type-128 Code-B barcode:
VBA CODE:
sval = Range("B1").Value ' numeric value of code
barstring = Chr(155) ' first command character
cd = 105 ' check start value
For j = 1 To Len(sval) Step 2 ' conversion to string
    c = Mid(sval, j, 2) ' according code specs
    b = Format(c) 
    If (b >= 1) And (b <= 94) Then bb = b + 32 
    If (b > 94) Then bb = b + 50 
    If (b = 0) Then bb = 128 
    barstring = barstring & Chr(bb) 
    cd = cd + (b * ((j + 1) \ 2)) ' control digit calc
Next j 
cd = cd Mod 103 
If (cd >= 1) And (cd <= 94) Then cda = cd + 32 
If (cd > 94) Then cda = cd + 50 
If (cd = 0) Then cda = 128 
 
barstring = barstring & Chr(cda) ' add calculated control digit
Range("A1").Value = barstring ' result
and only after that you can apply a barcode font to cell A1.

I have used Code128bWinLarge.ttf font



The Code Cage Advertisment
Advertisement
  #7  
Old 30th May 2014, 08:07
FutureC's Avatar
FutureC FutureC is offline
Junior Member
MS Office Version: MS Office 2007
MS Office Skill Level: Proficient with MS Office
 
Join Date: May 2014
Location: Walnut
Age: 34
Posts: 6
Posts Per Day: 0.00
My Top Tip Count: 0
Thanks to others: 0
Thanked 0 Times in 0 Posts
Reputation: 10 (4) FutureC is on a distinguished road
Default Re: How to convert excel numbers in barcode in excel sheet

------ Register to get rid of these "In Post" ads! ------


To convert numbers into barcodes, instead of using barcode font, you may try to install a Excel barcode generation plug-in. This is what i used, providing friendly user interface. Hope it works for you.


Last edited by FutureC; 30th May 2014 at 08:13.


The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!

 
The Code Cage at Facebookhe Code Cage at Twitter


Tags
barcode, convert, excel, numbers, sheet

Thread Tools
Display Modes 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

Forum Jump

The Code Cage Affilliates



http://www.thecodecage.com/forumz tested by McAfee Security http://www.thecodecage.com/forumz tested by McAfee Security

All times are GMT +1. The time now is 04:39.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Template-Modifications by TMS
No part of this board, functionality or creatives may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
Copyright ©2008 - , Simon lloyd.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application they represent and are used with permission from Microsoft
UA-8135493-1
Cultural Forum | Study at Malaysian University
X vBulletin 3.8.7 Debug Information
  • Page Generation 0.19901 seconds
  • Memory Usage 6,539KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footerEnd
  • (1)ad_footerStart
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_headerEnd
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_leftcolumn_code
  • (1)ad_navbar_below
  • (4)ad_postbit_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (7)helpful_answers
  • (1)helpfulanswers_javascript
  • (1)navbar
  • (3)navbar_link
  • (3)navbar_noticebit
  • (52)option
  • (7)post_thanks_box
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_ctoptip
  • (7)postbit_onlinestatus
  • (37)postbit_reputation
  • (7)postbit_wrapper
  • (1)showthread_changepostsowner_link
  • (1)showthread_extra_fields
  • (1)showthread_quickreply_mrgdp
  • (1)showthread_reason_popup
  • (1)spacer_close
  • (1)spacer_open
  • (1)su_form
  • (5)tagbit
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_datastore.php
  • ./includes/class_hook.php
  • ./awcoding/plugins/awc.php
  • ./awcoding/plugins/ds.php
  • ./awcoding/plugins/ss.php
  • ./includes/functions_notice.php
  • ./mobiquo/smartbanner.php
  • ./mobiquo/include/classTTConnection.php
  • ./mobiquo/smartbanner/head.inc.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/vbatags.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php
  • ./includes/functions_misc.php 

Hooks Called:
  • init_startup
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_check_criteria
  • notices_noticebit
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • helpfulanswers_showthreadorpost
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • helpfulanswers_show_normal
  • reputation_power
  • reputation_image
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • error_fetch
  • tag_fetchbit
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete