Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Automatically exporting data to a second sheet

Hi again all,

there seem to be plenty of posts regarding this topic around here, but
I can't find exactly what I need, if its possible at all.

What we have is a template that gets filled out each time, then not
normally saved afterward though we could probably change that part of
the routine. What I need, is some information like client's names etc
to be saved in a second sheet after the template has been used.
Normally that template is used over and over again and each time
cleared, then the information manually written out again in the second
report sheet.

Is there a possible way that after the template has been used, to get
the second sheet to take a record of this information, the template
cleared again and that information still kept in the report?

Thanks for any help

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Automatically exporting data to a second sheet

Bob,

A simple macro can be used. For example, if you have a worksheet named Record, and one named
Template.....

Sub RecordAndClear()
Dim myRow As Long

'Find the row to store the data
myRow = Worksheets("Record").Cells(65536,1).End(xlUp).Row + 1

'Get data for column 1
Worksheets("Record").Cells(myRow,1).Value = Worksheets("Template").Range("B3").Value
Worksheets("Template").Range("B3").ClearContents

'Get data for column 2
Worksheets("Record").Cells(myRow,2).Value = Worksheets("Template").Range("H4").Value
Worksheets("Template").Range("H4").ClearContents

'Get data for column 3
Worksheets("Record").Cells(myRow,3).Value = Worksheets("Template").Range("G7").Value
Worksheets("Template").Range("G7").ClearContents

'Get data for column 4......
'And so on for other cells.....

End Sub

I hope you can see the pattern....

HTH,
Bernie
MS Excel MVP


wrote in message
oups.com...
Hi again all,

there seem to be plenty of posts regarding this topic around here, but
I can't find exactly what I need, if its possible at all.

What we have is a template that gets filled out each time, then not
normally saved afterward though we could probably change that part of
the routine. What I need, is some information like client's names etc
to be saved in a second sheet after the template has been used.
Normally that template is used over and over again and each time
cleared, then the information manually written out again in the second
report sheet.

Is there a possible way that after the template has been used, to get
the second sheet to take a record of this information, the template
cleared again and that information still kept in the report?

Thanks for any help



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
automatically show data entered on another sheet within the workbo leah Excel Worksheet Functions 2 May 24th 06 02:49 PM
Match and Sort for two range of data on different worksheets? Tan New Users to Excel 3 March 9th 06 08:55 AM
Multiple worksheet queries liam Excel Worksheet Functions 3 February 16th 05 06:52 PM
pull data from sheet two, then fill in the data to sheet one (part Jim Excel Worksheet Functions 3 December 11th 04 04:51 AM
Function to automatically insert a new sheet as a result of data entry? Mark Mulik Excel Worksheet Functions 2 November 28th 04 02:21 AM


All times are GMT +1. The time now is 11:31 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"