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?
 

Some videos you may like

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Makrini

Well-known Member
Joined
May 22, 2007
Messages
1,035
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?
 

hotglue

New Member
Joined
Apr 13, 2009
Messages
2
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!
 

Makrini

Well-known Member
Joined
May 22, 2007
Messages
1,035
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
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,218
Office Version
  1. 365
Platform
  1. Windows
Why not just use Word>Mail Merge...?

It has built-in functionality to create labels of standard or custom sizes
 

jim may

Well-known Member
Joined
Jul 4, 2004
Messages
7,480
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...
 

Watch MrExcel Video

Forum statistics

Threads
1,122,521
Messages
5,596,645
Members
414,083
Latest member
Mrsash

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
Top