ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Filling up Forms (https://www.excelbanter.com/excel-programming/397177-filling-up-forms.html)

tc

Filling up Forms
 
Hi. I have a form on sheet one. on the next few sheets, there is data
which has to be posted into the Form on sheet 1 and then printed one
at a time. How can this be done using a macro?


FSt1

Filling up Forms
 
hi.
see your post under general questions

Regards
FSt1

"tc" wrote:

Hi. I have a form on sheet one. on the next few sheets, there is data
which has to be posted into the Form on sheet 1 and then printed one
at a time. How can this be done using a macro?



Tom Ogilvy

Filling up Forms
 
for each cell in worksheets("Data").Range("A1:A20")
With Worksheets("sheet1")
.Range("B9").Value = cell.value
.Printout
end with
Next

You would need to have lookup type formulas (perhaps vlookup) in the other
cells on sheet1 to fetch the values related to the value placed in cell B9
(in the example).

=if(b9="","",vlooku(B9,Data!A:F,3,False))

--
Regards,
Tom Ogilvy


"tc" wrote:

Hi. I have a form on sheet one. on the next few sheets, there is data
which has to be posted into the Form on sheet 1 and then printed one
at a time. How can this be done using a macro?




All times are GMT +1. The time now is 11:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com