ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   export excel data to another sheet (https://www.excelbanter.com/excel-programming/349977-export-excel-data-another-sheet.html)

owl527[_19_]

export excel data to another sheet
 

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.


--
owl527
------------------------------------------------------------------------
owl527's Profile: http://www.excelforum.com/member.php...o&userid=20916
View this thread: http://www.excelforum.com/showthread...hreadid=499660


DaveO

export excel data to another sheet
 
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.

"owl527" wrote:


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.


--
owl527
------------------------------------------------------------------------
owl527's Profile: http://www.excelforum.com/member.php...o&userid=20916
View this thread: http://www.excelforum.com/showthread...hreadid=499660



owl527[_20_]

export excel data to another sheet
 

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.


--
owl527
------------------------------------------------------------------------
owl527's Profile: http://www.excelforum.com/member.php...o&userid=20916
View this thread: http://www.excelforum.com/showthread...hreadid=499660


Sylvia[_5_]

export excel data to another sheet
 

I want to copy the data between two blank rows from one sheet to the
another. How can I do that?


--
Sylvia
------------------------------------------------------------------------
Sylvia's Profile: http://www.excelforum.com/member.php...o&userid=30300
View this thread: http://www.excelforum.com/showthread...hreadid=499660



All times are GMT +1. The time now is 08:37 AM.

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