Re: Labels
- From: dario90@xxxxxxxxx
- Date: Mon, 18 Aug 2008 01:37:10 -0700 (PDT)
On 18 Sie, 10:07, "Per Jessen" <per.jes...@xxxxxxx> wrote:
Hi
This should do it, just change the "off" value to place the text in the
desired rows:
Sub CommandButton1_Click()
lr = Cells(Rows.Count, "c").End(xlUp).Row
For Each c In Range("C1:C" & lr)
If c.Value <> "" Then
Sheets("Sheet2").Columns("E:F").ClearContents
For l = 1 To c.Offset(0, 2).Value
c.Resize(1, 2).Copy Sheets("Sheet2").Range("E3").Offset(l + off,
0)
off = off + 3
Next
Sheets("sheet2").PrintOut
off = 0
End If
Next c
End Sub
Regards,
Per
<dari...@xxxxxxxxx> skrev i meddelelsennews:65c120cb-18b8-47d2-9d18-ce3aec52b1d4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 17 Sie, 15:20, "Per Jessen" <per.jes...@xxxxxxx> wrote:
Sorry, I didn't read your first post carefully enough:-)
C.Resize(1,3).Copy .....
Regards,
Per
<dari...@xxxxxxxxx> skrev i
meddelelsennews:65d86555-4c13-404c-8dac-c0034e6bae14@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 13 Sie, 10:28, "Per Jessen" <per.jes...@xxxxxxx> wrote:
Try this:
Sub CommandButton1_Click()
lr = Cells(Rows.Count, "c").End(xlUp).Row
For Each C In Range("C1:C" & lr)
If C.Value <> "" Then
C.Resize(1, 2).Copy Sheets("Sheet2").Range("E3")
Sheets("sheet2").PrintOut
End If
Next C
End Sub
Regards,
Per
<dari...@xxxxxxxxx> skrev i
meddelelsennews:09b193b2-62d7-4d87-954c-2f86207174f3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have sth like this from sb very helpful but need to copy also values
from column D as a item description and set number of labels copies
even to value in column E for each record ( sheet1 is a base, sheet2
is pattern of label):
Sub CommandButton1_Click()
lr=cells(rows.count,"c").end(xlup).row
for each c in range("C1:C" & lr)
If C.Value <>"" Then
c.Copy Sheets("Sheet2").range("E3")
sheets("sheet2").PrintOut
End If
Next C
End sub
Can anybody help me with this?
ok, it works. Thank's. But what with number of copies- how can i
specify it in connection with value in each record so it will be equal
to amount of item pallets?
ok, thank's. One more question- how to print 4 labels on 1 *** in a
horizontal position?
Hi, actually i have a changed formula because in your version it
copied formulas from cells- not the values. Now it's sth like that:
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
lr = Cells(Rows.Count, "c").End(xlUp).Row
For Each c In Range("E1:E" & lr)
If c.Value <> "" Then
c.Resize(1, 2).Copy
Sheets("Arkusz2").Range("E3") _
.PasteSpecial Paste:=xlValues, _
Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
For x = 1 To c.Offset(0, 2).Value
Sheets("Arkusz2").PrintOut
Next x
End If
Next c
Application.ScreenUpdating = True
End Sub
I think that your last proposition should be added in 'For x......'
loop. Am I right?
.
- Follow-Ups:
- Re: Labels
- From: Per Jessen
- Re: Labels
- References:
- Labels
- From: dario90
- Re: Labels
- From: Per Jessen
- Re: Labels
- From: dario90
- Re: Labels
- From: Per Jessen
- Re: Labels
- From: dario90
- Re: Labels
- From: Per Jessen
- Labels
- Prev by Date: Re: Labels
- Next by Date: Re: Labels
- Previous by thread: Re: Labels
- Next by thread: Re: Labels
- Index(es):