Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
List
The information below would be on worksheet named Sheet1
A B C Cust id Product code Amount 1 10006 RFUUK 2000.00 2 10010 RFUUK 2000.00 3 10030 RFUOS 3000.00 I need help to write a macro to carry out the following actions, 1. I would like to have the information for each row on a specific position (e.g. A1, A12 and C12) on another worksheet (e.g. named Sheet2) then print that page. 2. Repeat the above cycle for the each row for the list on Sheet1. Thanks. Any help appreciated. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
List
Public Sub ProcessData()
Dim i As Long Dim iLastRow As Long With ActiveSheet iLastRow = .Cells(.Rows.Count, "A").End(xlUp).Row For i = 1 To iLastRow .Cells(i, "A").Copy Worksheets("Sheet2").Range("A1") .Cells(i, "B").Copy Worksheets("Sheet2").Range("A12") .Cells(i, "C").Copy Worksheets("Sheet2").Range("C12") Worksheets("Sheet2").PrintOut Next i End With End Sub -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "nc" wrote in message ... The information below would be on worksheet named "Sheet1" A B C Cust id Product code Amount 1 10006 RFUUK 2000.00 2 10010 RFUUK 2000.00 3 10030 RFUOS 3000.00 I need help to write a macro to carry out the following actions, 1. I would like to have the information for each row on a specific position (e.g. A1, A12 and C12) on another worksheet (e.g. named "Sheet2") then that page. 2. Repeat the above cycle for the each row for the list on "Sheet1". Thanks. Any help appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Dropdown List - list item endings not visible if column too narrow | Excel Discussion (Misc queries) | |||
validation list--list depends on the selection of first list | New Users to Excel | |||
list 1 has 400 names List 2 has 4000. find manes from list 1 on 2 | Excel Worksheet Functions | |||
find names on list 1 in list 2. list 1 4000 names list 2 400 name | Excel Worksheet Functions | |||
sort list of players by team from player list on separate sheet | Excel Worksheet Functions |