Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Fiat-Lux
 
Posts: n/a
Default Printing a database record

Hi, I have question regarding an excel spreadsheet.

I have a simple flat-file database that at the moment only contains about a
hundred records but will by the end of the hold at least a thousand.

I would like to be able to somehow highlight a row that contains a record
and export that information perhaps into another worksheet so that it can be
printed like a form.

Any ideas would be appreciated.

Regards
Adrian
  #2   Report Post  
Posted to microsoft.public.excel.misc
bigwheel
 
Posts: n/a
Default Printing a database record

Well I think I'd start by designing my form on a new worksheet and make a
note of where the datafields should be. Then you could create a macro which
fills the datafields on the form from information in the database using a
formula similar to this:-

Sheets(2).Cells(10, 7) = ActiveCell

cells(10,7) would be G10 of your form and that would show the data from the
activecell in the database say A2. Next you need the rest of the data, so a
few more lines in the macro for example:-

Sheets(2).Cells(12, 7) = ActiveCell.Offset(0, 1)

Offset(0,1) would be A3 etc. Then change to the worksheet with the form and
print it

"Fiat-Lux" wrote:

Hi, I have question regarding an excel spreadsheet.

I have a simple flat-file database that at the moment only contains about a
hundred records but will by the end of the hold at least a thousand.

I would like to be able to somehow highlight a row that contains a record
and export that information perhaps into another worksheet so that it can be
printed like a form.

Any ideas would be appreciated.

Regards
Adrian

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
Database functions should use criteria in formula, as 1-2-3 does 123user Excel Worksheet Functions 8 September 29th 05 08:57 PM
Links to External Database Rubble Excel Discussion (Misc queries) 0 July 20th 05 10:44 PM
how to display single database records into forms for printing need help Excel Discussion (Misc queries) 1 July 6th 05 01:42 AM
Function that filters a list (Database) for criteria in a range a. FirstVette52 Excel Worksheet Functions 0 February 8th 05 04:37 PM
How do I save a record from an excel template to a database in a . Fred Smith Excel Discussion (Misc queries) 1 November 30th 04 01:49 PM


All times are GMT +1. The time now is 11:12 PM.

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"