Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
cassy01
 
Posts: n/a
Default Printing 1 Form with differnt values ?


Hi there i have a workbook with the 1st sheet the actual form which we
print out and the 2nd sheet is the database sheet with all the input
information on it.

is there a way of printing the form with the 2st set of data, then it
will replace it with the 2nd set and print and so on.

Hope you understand

Many Thanks
Benn


--
cassy01
------------------------------------------------------------------------
cassy01's Profile: http://www.excelforum.com/member.php...nfo&userid=780
View this thread: http://www.excelforum.com/showthread...hreadid=473713

  #2   Report Post  
JR
 
Posts: n/a
Default

You will need to have one cell that drives the entire form page, then use
VLOOKUP or SUMIF formulas to populate the form, based on that one cell (eg
employee name, product number, cost center, etc.)

Then create a list somewhere on the data page that includes all of the
lookup items(eg all of your cost centers). Highlight this list, then go to
"Insert", then "Name", then "Define"...give the list a name; let's call it
"CC".

Then go to "Tools", "Macro", "Visual Basic Editor" and type this in...
Sub PrintFinancials()
'
' PrintFinancials Macro
' Macro recorded 9/25/2005 by JGReese
'
Dim CostCenter As String
For Each Name In Range("CC") ...this is your range name

CostCenter = Name

Sheets("FORM").Select ...this is the sheet where
the data is to go
Range("D5").Select ...this is the cell where
the data is to go
ActiveCell.FormulaR1C1 = CostCenter
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

Next Name

End Sub

When you are done, save the file and close the visual basic editor. Add a
button on you data page and assign the "Print Financials" macro to it. You
should now be able to just click the button and the macro will put the first
cost center on the form page, print it, then the second, print it... etc. to
the bottom of you cost center list.

"cassy01" wrote:


Hi there i have a workbook with the 1st sheet the actual form which we
print out and the 2nd sheet is the database sheet with all the input
information on it.

is there a way of printing the form with the 2st set of data, then it
will replace it with the 2nd set and print and so on.

Hope you understand

Many Thanks
Benn


--
cassy01
------------------------------------------------------------------------
cassy01's Profile: http://www.excelforum.com/member.php...nfo&userid=780
View this thread: http://www.excelforum.com/showthread...hreadid=473713


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
Zero values in a log chart Joelle_Smith Charts and Charting in Excel 2 May 8th 23 03:42 AM
Is there a way to convert a EXCEL form into a WORD form? Sister6 Excel Discussion (Misc queries) 0 April 27th 05 11:35 PM
Is there a way to convert a EXCEL form into a WORD form? Carole O Excel Discussion (Misc queries) 1 April 27th 05 10:13 PM
Data Form Deletions CyberTaz Excel Discussion (Misc queries) 1 April 26th 05 01:25 PM
Second serie doesn't use X-as values JackRnl Charts and Charting in Excel 1 January 20th 05 01:04 AM


All times are GMT +1. The time now is 04:08 PM.

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

About Us

"It's about Microsoft Excel"