VIRGIN EXCEL VBA user

hotglue

New Member
Joined
Apr 13, 2009
Messages
2
Hi all,
I have no experience with VB but am an intermediate user of Excel 2003.
I have been trying to learn VB for Excel with online tutorials but find it difficult to go back and forth from each lesson to my worksheet.
Im hoping someone can get me started on what I think might be a basic VB program.
What Im trying to do is set up an Excel spreadsheet with 7 columns. In the 7th col. of each row I want to have a checkbox that a user can check to print the contents of each row onto a label. They should be able to check any individual row for which they want to generate a label. Label size will be about 2" x 4" but I think this can be decided later.(?)
Someone gave me the code for a similar (but more complicated)program but again as I have no experience Im having trouble navigating and trying to modifying it.

Can someone get me started?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
What you are trying to do is possible - although a bit of a pain for various reasons to do with checkboxes. (although someone here may prove me wrong)

If you want to achieve the same results - why not use excel as your data - and mailmerge from word?
 
Upvote 0
Thanks Makrini,
Im not sure how mailmerge works either and if it make it any easier, Im flexible on the "checkbox" option. I think there needs to be a way a user can pick the row(s) of data they want to generate a lable for.
Does this help?
Thanks again!
 
Upvote 0
If you used a cell value rather than a checkbox..

(i.e in this case - if the user put "1" in Column I)

Code:
Sub tester()
    For Each Cell In Range("I:I")
        If Cell.Value = 1 Then Range(Cell, Cell.Offset(0, -9)).PrintOut
    Next Cell
    
End Sub

makes it a little simpler
 
Upvote 0
Why not just use Word>Mail Merge...?

It has built-in functionality to create labels of standard or custom sizes
 
Upvote 0
You could use the Auto Filter feature with new column Select? inserting a Y (for yes).
Filter on Y << your Data Source for Word>Mail Merge...
 
Upvote 0

Forum statistics

Threads
1,214,531
Messages
6,120,073
Members
448,943
Latest member
sharmarick

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top