VB Scripting for Bartender Label

It will give you an error if you try to generate the label while keeping the file open.

Thanks.

On Oct 8, 2013 11:44 AM, "melissa hietala" <kevmel822@...> wrote:

Â
<div>
  
  
  <p><div style="font-size:12pt;font-family:Courier New, courier, monaco, monospace, sans-serif;"><div><span>We have a process that requires us to go out to an excel spreadsheet and get the information required on the label.  I have received Bartenders sample VB script that they use in this case but keep getting errors.</span></div>
Â
Does anyone have any experience using a label that queries an excel spreadsheet for a database?
Â
Any help or ideas are greatly appreciated.
Â
Thanks,
Â
Melissa Hietala
UMC, Inc.
melissah@...
</div>
 


<div style="color:#fff;min-height:0;"></div>
We have a process that requires us to go out to an excel spreadsheet and get the information required on the label.  I have received Bartenders sample VB script that they use in this case but keep getting errors.
 
Does anyone have any experience using a label that queries an excel spreadsheet for a database?
 
Any help or ideas are greatly appreciated.
 
Thanks,
 
Melissa Hietala
UMC, Inc.
melissah@...

When using Excel, we have mostly done this as a one time connection, so we did not do it programmatically…However, I think it would be similar to how we are doing this with other labels (not using Excel, but using fields in Epicor to output to a csv file).  Have you done any labels programmatically yet?

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of melissa hietala
Sent: Tuesday, October 08, 2013 8:00 AM
To: vantage@yahoogroups.com
Subject: [Vantage] VB Scripting for Bartender Label

 

 

We have a process that requires us to go out to an excel spreadsheet and get the information required on the label.  I have received Bartenders sample VB script that they use in this case but keep getting errors.

 

Does anyone have any experience using a label that queries an excel spreadsheet for a database?

 

Any help or ideas are greatly appreciated.

 

Thanks,

 

Melissa Hietala
UMC, Inc.
melissah@...

Karen,
 
Thanks for responding.  We have not done any labels programmitically yet.  When you say "When using Excel, we have mostly done this as a one time connection....what do you mean by that?  Did you have it quiery from the database or did you pull informaiton from the columns/rows in excel?
 
Thanks,
 
Melissa Hietala
UMC, Inc.
melissah@...


On Tuesday, October 8, 2013 12:48 PM, Karen Schoenung <kschoenung@...> wrote:
 
<div id="ygrps-yiv-283899593yiv6990785454ygrp-text">
  
  
  <div class="ygrps-yiv-283899593yiv6990785454WordSection1"><div class="ygrps-yiv-283899593yiv6990785454MsoNormal"><span style="color:rgb(31, 73, 125);font-size:11pt;">When using Excel, we have mostly done this as a one time connection, so we did not do it programmatically…However, I think it would be similar to how we are doing this with other labels (not using Excel, but using fields in Epicor to output to a csv file).&nbsp; Have you done any labels programmatically yet?</span></div><div class="ygrps-yiv-283899593yiv6990785454MsoNormal"><span style="color:rgb(31, 73, 125);font-size:11pt;"> &nbsp;</span></div><div id="ygrps-yiv-283899593yiv6990785454yqt11172" class="ygrps-yiv-283899593yiv6990785454yqt8965318207"><div><div style="border-top-color:rgb(181, 196, 223);border-top-width:1pt;border-top-style:solid;"><div class="ygrps-yiv-283899593yiv6990785454MsoNormal"><b><span style="font-size:10pt;">From:</span></b><span style="font-size:10pt;"> vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] <b>On Behalf Of </b>melissa hietala<br

clear=“none”>Sent: Tuesday, October 08, 2013 8:00 AM
To: vantage@yahoogroups.com
Subject: [Vantage] VB Scripting for Bartender Label

 
 
We have a process that requires us to go out to an excel spreadsheet and get the information required on the label.  I have received Bartenders sample VB script that they use in this case but keep getting errors.
 
Does anyone have any experience using a label that queries an excel
spreadsheet for a database?
 
Any help or ideas are greatly appreciated.
 
Thanks,
 
Melissa Hietala
UMC, Inc.
melissah@…

</div>
 


<div id="ygrps-yiv-283899593yiv6990785454yqt42907" class="ygrps-yiv-283899593yiv6990785454yqt8965318207"><div style="height:0px;color:rgb(255, 255, 255);"></div></div>
#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454 -- #ygrps-yiv-283899593yiv6990785454ygrp-mkp { border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-mkp hr {
border:1px solid #d8d8d8;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-mkp #ygrps-yiv-283899593yiv6990785454hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-mkp #ygrps-yiv-283899593yiv6990785454ads {
margin-bottom:10px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-mkp .ygrps-yiv-283899593yiv6990785454ad {
padding:0 0;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-mkp .ygrps-yiv-283899593yiv6990785454ad p {
margin:0;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-mkp .ygrps-yiv-283899593yiv6990785454ad a {
color:#0000ff;text-decoration:none;}
#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-sponsor #ygrps-yiv-283899593yiv6990785454ygrp-lc {
font-family:Arial;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-sponsor #ygrps-yiv-283899593yiv6990785454ygrp-lc #ygrps-yiv-283899593yiv6990785454hd {
margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-sponsor #ygrps-yiv-283899593yiv6990785454ygrp-lc .ygrps-yiv-283899593yiv6990785454ad {
margin-bottom:10px;padding:0 0;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454actions {
font-family:Verdana;font-size:11px;padding:10px 0;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454activity {
background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454activity span {
font-weight:700;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454activity span:first-child {
text-transform:uppercase;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454activity span a {
color:#5085b6;text-decoration:none;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454activity span span {
color:#ff7900;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454activity span .ygrps-yiv-283899593yiv6990785454underline {
text-decoration:underline;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 .ygrps-yiv-283899593yiv6990785454attach {
clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 .ygrps-yiv-283899593yiv6990785454attach div a {
text-decoration:none;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 .ygrps-yiv-283899593yiv6990785454attach img {
border:none;padding-right:5px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 .ygrps-yiv-283899593yiv6990785454attach label {
display:block;margin-bottom:5px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 .ygrps-yiv-283899593yiv6990785454attach label a {
text-decoration:none;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 blockquote {
margin:0 0 0 4px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 .ygrps-yiv-283899593yiv6990785454bold {
font-family:Arial;font-size:13px;font-weight:700;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 .ygrps-yiv-283899593yiv6990785454bold a {
text-decoration:none;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 dd.ygrps-yiv-283899593yiv6990785454last p a {
font-family:Verdana;font-weight:700;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 dd.ygrps-yiv-283899593yiv6990785454last p span {
margin-right:10px;font-family:Verdana;font-weight:700;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 dd.ygrps-yiv-283899593yiv6990785454last p span.ygrps-yiv-283899593yiv6990785454yshortcuts {
margin-right:0;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 div.ygrps-yiv-283899593yiv6990785454attach-table div div a {
text-decoration:none;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 div.ygrps-yiv-283899593yiv6990785454attach-table {
width:400px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 div.ygrps-yiv-283899593yiv6990785454file-title a, #ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 div.ygrps-yiv-283899593yiv6990785454file-title a:active, #ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 div.ygrps-yiv-283899593yiv6990785454file-title a:hover, #ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 div.ygrps-yiv-283899593yiv6990785454file-title a:visited {
text-decoration:none;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 div.ygrps-yiv-283899593yiv6990785454photo-title a, #ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 div.ygrps-yiv-283899593yiv6990785454photo-title a:active, #ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 div.ygrps-yiv-283899593yiv6990785454photo-title a:hover, #ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 div.ygrps-yiv-283899593yiv6990785454photo-title a:visited {
text-decoration:none;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 div#ygrps-yiv-283899593yiv6990785454ygrp-mlmsg #ygrps-yiv-283899593yiv6990785454ygrp-msg p a span.ygrps-yiv-283899593yiv6990785454yshortcuts {
font-family:Verdana;font-size:10px;font-weight:normal;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 .ygrps-yiv-283899593yiv6990785454green {
color:#628c2a;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 .ygrps-yiv-283899593yiv6990785454MsoNormal {
margin:0 0 0 0;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 o {
font-size:0;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454photos div {
float:left;width:72px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454photos div div {
border:1px solid #666666;height:62px;overflow:hidden;width:62px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454photos div label {
color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454reco-category {
font-size:77%;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454reco-desc {
font-size:77%;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 .ygrps-yiv-283899593yiv6990785454replbq {
margin:4px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-actbar div a:first-child {
margin-right:2px;padding-right:5px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-mlmsg {
font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-mlmsg table {
font-size:inherit;font:100%;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-mlmsg select, #ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 input, #ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 textarea {
font:99% Arial, Helvetica, clean, sans-serif;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-mlmsg pre, #ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 code {
font:115% monospace;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-mlmsg * {
line-height:1.22em;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-mlmsg #ygrps-yiv-283899593yiv6990785454logo {
padding-bottom:10px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-msg p a {
font-family:Verdana;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-msg p#ygrps-yiv-283899593yiv6990785454attach-count span {
color:#1E66AE;font-weight:700;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-reco #ygrps-yiv-283899593yiv6990785454reco-head {
color:#ff7900;font-weight:700;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-reco {
margin-bottom:20px;padding:0px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-sponsor #ygrps-yiv-283899593yiv6990785454ov li a {
font-size:130%;text-decoration:none;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-sponsor #ygrps-yiv-283899593yiv6990785454ov li {
font-size:77%;list-style-type:square;padding:6px 0;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-sponsor #ygrps-yiv-283899593yiv6990785454ov ul {
margin:0;padding:0 0 0 8px;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-text {
font-family:Georgia;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-text p {
margin:0 0 1em 0;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-text tt {
font-size:120%;}

#ygrps-yiv-283899593 #ygrps-yiv-283899593yiv6990785454 #ygrps-yiv-283899593yiv6990785454ygrp-vital ul li:last-child {
border-right:none !important;}
#ygrps-yiv-283899593