PC Review


Reply
Thread Tools Rate Thread

Auto Print A Form From A List

 
 
martinwroger@gmail.com
Guest
Posts: n/a
 
      3rd Oct 2006
I have a form and I want to automatically print it out using a list of
employee names. The employee list is located on the same sheet as the
form. I just want to be able to have the macro insert name1, print the
defined range, insert name2, print the defined range etc. until the
last name has been printed. I just can't think of a way to get started.

Any help will be appreciated.

Thanks,

Roger

 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      3rd Oct 2006
Hi Roger

With the list in Z1:Z10 it copy the name in A1 and print A1:G50 for all cells in the list

Sub test()
Dim cell As Range
For Each cell In Range("Z1:Z10")
Range("A1").Value = cell.Value
Range("A1:G50").PrintOut preview:=True
Next cell
End Sub




--
Regards Ron de Bruin
http://www.rondebruin.nl



<(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>I have a form and I want to automatically print it out using a list of
> employee names. The employee list is located on the same sheet as the
> form. I just want to be able to have the macro insert name1, print the
> defined range, insert name2, print the defined range etc. until the
> last name has been printed. I just can't think of a way to get started.
>
> Any help will be appreciated.
>
> Thanks,
>
> Roger
>



 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      3rd Oct 2006
Remove this if it is OK Roger
preview:=True


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Ron de Bruin" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Hi Roger
>
> With the list in Z1:Z10 it copy the name in A1 and print A1:G50 for all cells in the list
>
> Sub test()
> Dim cell As Range
> For Each cell In Range("Z1:Z10")
> Range("A1").Value = cell.Value
> Range("A1:G50").PrintOut preview:=True
> Next cell
> End Sub
>
>
>
>
> --
> Regards Ron de Bruin
> http://www.rondebruin.nl
>
>
>
> <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>>I have a form and I want to automatically print it out using a list of
>> employee names. The employee list is located on the same sheet as the
>> form. I just want to be able to have the macro insert name1, print the
>> defined range, insert name2, print the defined range etc. until the
>> last name has been printed. I just can't think of a way to get started.
>>
>> Any help will be appreciated.
>>
>> Thanks,
>>
>> Roger
>>

>
>



 
Reply With Quote
 
martinwroger@gmail.com
Guest
Posts: n/a
 
      3rd Oct 2006
That is exactly what I needed. Thanks so much.

Roger

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Print auto correction list Carolyn Microsoft Word Document Management 0 22nd Jan 2009 11:29 PM
Not in list error when form has limit to list = no auto correct = terry beckman Microsoft Access Form Coding 3 7th Mar 2008 02:30 PM
Print Auto-Fill Cache List =?Utf-8?B?RGVuaXNlUw==?= Microsoft Outlook Contacts 1 18th Oct 2007 09:10 PM
Print a list of personal Auto Correct entries =?Utf-8?B?Q2hyaXN0aW5hIEwu?= Microsoft Word Document Management 3 22nd Sep 2005 06:16 AM
How can a user print out the auto correct list =?Utf-8?B?Z2Vvcmdl?= Microsoft Word Document Management 1 19th Nov 2003 11:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:01 AM.