export excel data to another sheet

  • Thread starter Thread starter owl527
  • Start date Start date
O

owl527

Hi,
I am working on a bunch of statistic daily and would like to store the
statistic on a daily basis. I want to create a button in a spreadsheet
(data.xls) and once I press it it will export the "useful" data to
another excel file (Turnover.xls). Both of the file will be located in
the same directory. I am not sure what functions to use to copy certain
cells from data.xls to Turnover.xls. How should I refer to Turnover.xls
file? do I use the workbook function? PLEASE help!!! thanks.
 
No problems here.

My suggestion...

Record a macro that copies all of your 'useful' data and pastes it into
another sheet.

Edit the macro in the VB Editor.

Workbooks are objects and thus have properties. Therefore you can have this...

ActiveWorkbook.Name

So create 2 str variables, strData and strTurnover.

Then...

strData = ActiveWorkbook.Name
strTurnover = Workbook("Turnover").Name

You can then reference both sheets by using this command.

Workbook({Enter str variable for the sheet you want}).Activate

HTH.
 
I want to record it in another file, not another sheet. How can I record
the macro? Please explain, I am a newbie here. Thanks very much for your
help.
 
I want to copy the data between two blank rows from one sheet to the
another. How can I do that?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top