Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / September 2007

Tip: Looking for answers? Try searching our database.

Code to Print single cells

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ianmacinnis@gmail.com - 13 Sep 2007 17:57 GMT
I need help with code to print single cells??  We have a spreadsheet
with bar codes and need to print them on labels with one bar code per
label.

Thanks
JLGWhiz - 13 Sep 2007 18:38 GMT
Look this up in Excel Help files.  It might get you started in the right
direction.

"Print labels by using Excel data in a Word mail merge"  


> I need help with code to print single cells??  We have a spreadsheet
> with bar codes and need to print them on labels with one bar code per
> label.
>
> Thanks
FSt1 - 13 Sep 2007 18:58 GMT
hi,
try something like this
Sub Printcell()
 
   Dim s As String
   
   s = ActiveCell.Address
   Application.DisplayAlerts = False
   ActiveSheet.PageSetup.PrintArea = s
   ActiveWindow.SelectedSheets.PrintPreview
   ActiveWindow.SelectedSheets.PrintOut Copies:=1
   Application.DisplayAlerts = True
End Sub

regards
FSt1

> I need help with code to print single cells??  We have a spreadsheet
> with bar codes and need to print them on labels with one bar code per
> label.
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.