Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

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
Export Data into another sheet Kenny Excel Discussion (Misc queries) 0 October 1st 07 09:47 AM
Extract Data by keyword and export to new Excel sheet Burger Queen Excel Worksheet Functions 1 November 9th 06 10:46 AM
can I export just the autofiltered data into own sheet? kst82276 Excel Discussion (Misc queries) 1 May 13th 05 03:24 PM
export data from MS Excel sheet to external database Mariusz[_2_] Excel Programming 2 March 29th 05 01:35 PM
Export Excel Sheet to JPG or TIF quartz[_2_] Excel Programming 3 January 7th 05 10:41 PM


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