Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Create Printing Macro

I have a workbook containing two worksheets. The first, is structured like a table, the second, like a form with about 20+ cell references to the first worksheet. I would like to create a macro that will print a "form" for each row (200+) in the "table". Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Create Printing Macro

Hi

One way

If you add Vlookup formulas in the 20 cells in Sheets("form") with as lookup value cell A1 Sheets("form")
and a lookup table in Sheets("table") you can use this macro.

This will change the value of A1 so all 20 cells will be updated with the values of that row.
Print the Sheets("form") and change the value to the next value......

Sub test()
Dim cell As Range
For Each cell In Sheets("table").Range("a1:a200")
Sheets("form").Range("A1").Value = cell.Value
Sheets("form").PrintOut
Next
End Sub


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"mvent" wrote in message ...
I have a workbook containing two worksheets. The first, is structured like a table, the second, like a form with about 20+

cell references to the first worksheet. I would like to create a macro that will print a "form" for each row (200+) in the
"table". Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Create Printing Macro


-----Original Message-----
Hi

One way

If you add Vlookup formulas in the 20 cells in Sheets

("form") with as lookup value cell A1 Sheets("form")
and a lookup table in Sheets("table") you can use this

macro.

This will change the value of A1 so all 20 cells will be

updated with the values of that row.
Print the Sheets("form") and change the value to the next

value......

Sub test()
Dim cell As Range
For Each cell In Sheets("table").Range("a1:a200")
Sheets("form").Range("A1").Value = cell.Value
Sheets("form").PrintOut
Next
End Sub


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"mvent" wrote in

message news:5FC1BBA9-40B3-4BBF-9A87-
...
I have a workbook containing two worksheets. The first,

is structured like a table, the second, like a form with
about 20+
cell references to the first worksheet. I would like to

create a macro that will print a "form" for each row
(200+) in the
"table". Thanks


.
Thanks, It worked great!!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a macro to create excel line graph with coloured pointers anddata lables anuj datta Charts and Charting in Excel 1 September 30th 09 04:04 PM
create a dymamic range for printing Jeff Excel Worksheet Functions 6 February 20th 07 01:24 PM
Make an Excel cell create a new sequential number each printing Kurt Excel Discussion (Misc queries) 1 April 24th 06 12:46 AM
How to create pop-up message in Excel before Printing [email protected] Excel Discussion (Misc queries) 4 March 20th 06 11:42 PM
How do I change or create different watermark optons for printing. Bob Excel Discussion (Misc queries) 1 January 22nd 05 01:14 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"