Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Export form information to Avery Label 8162 with VBA

$
0
0
I have to be honest, I have no idea how i'd do this with vba or even a macro and i'll be as detailed as I can with my question.

I have a from called frmProject that has a combo box called cboToItem and three text boxes set up like this:

[ToDescription] default value = [cboFromItem].[column](1)
[ToSize] default value = [cboFromItem].[column](2)
[ToBPC] default Value = [cboFromItem].[column](3)

I need to put this information on Avery Mailing Label 8162. Right now i use good old ctrl C and ctrl V. Ideally i'd like to load the labels in the printer and hit my cmdprint button.

I'd like to set up a cmdbutton called cmdPrint that sends the information so it looks like this:

ToDescription
cboItemNumber
ToBPC - ToSize
and have it center the text with what I believe would be Range.ParagraphFormat.Alignment = wdAlignParagraphCenter

Viewing all articles
Browse latest Browse all 13329

Trending Articles