D
Dawn Crosier
I am creating a process to generate sheets of Avery 5167 labels. I have a
UserForm where the user identifies the range of text to be inserted on each
label. I have that part figured out - although testing has been pretty
tedious. <smile>
My question is how can I more efficiently insert the labels themselves into
my document? Currently I take the starting number and the ending number,
find the difference between and divide by 80 to know how many sheets. Then
I run the following:
ActiveDocument.Tables(1).Range.Select
If intNumberPages > 1 Then
For counter = 1 To intNumberPages
Selection.InsertCells ShiftCells:=wdInsertCellsShiftDown
Application.StatusBar = "Creating Label Sheet Number: " & counter
Next counter
End If
This process is pretty transparent when there are not many pages to be
inserted. However, since there will be instances when 100 pages worth of
labels will be created, the more pages the longer the period of time.
Currently it takes approximately 6 minutes to generate the sheets and
populate the labels for 93 sheets. I have already turned off
ScreenUpdating - which leaves a very messy screen displayed - bars of dark
gray and white.
Suggestions?
--
Dawn Crosier
"Education Lasts a Lifetime"
This message was sent to a newsgroup. Please post back to the newsgroup so
all may follow the thread.
UserForm where the user identifies the range of text to be inserted on each
label. I have that part figured out - although testing has been pretty
tedious. <smile>
My question is how can I more efficiently insert the labels themselves into
my document? Currently I take the starting number and the ending number,
find the difference between and divide by 80 to know how many sheets. Then
I run the following:
ActiveDocument.Tables(1).Range.Select
If intNumberPages > 1 Then
For counter = 1 To intNumberPages
Selection.InsertCells ShiftCells:=wdInsertCellsShiftDown
Application.StatusBar = "Creating Label Sheet Number: " & counter
Next counter
End If
This process is pretty transparent when there are not many pages to be
inserted. However, since there will be instances when 100 pages worth of
labels will be created, the more pages the longer the period of time.
Currently it takes approximately 6 minutes to generate the sheets and
populate the labels for 93 sheets. I have already turned off
ScreenUpdating - which leaves a very messy screen displayed - bars of dark
gray and white.
Suggestions?
--
Dawn Crosier
"Education Lasts a Lifetime"
This message was sent to a newsgroup. Please post back to the newsgroup so
all may follow the thread.