Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default help with macro to export data

can I use a macro to export data to another workbook? I mean, if I have data
on workbook 1, Sheet A ... can I use a macro to export all data from
"Workbook 1, Sheet A" to "Workbook 2 Sheet B" ??

Thanks,
Mayte
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default help with macro to export data

Maybe you can use this macro:

Sub sheetcopy()
Workbooks("Workbook 1.xls").Sheets("Sheet A").Copy _
After:=Workbooks("Workbook 2.xls"). _
Sheets(Workbooks("Workbook 2.xls").Sheets.Count)
Workbooks("Workbook 2.xls"). _
Sheets(Workbooks("Workbook 2.xls").Sheets.Count).Name = "Sheet B"
End Sub

Regards,
Stefi


€˛Mayte€¯ ezt Ć*rta:

can I use a macro to export data to another workbook? I mean, if I have data
on workbook 1, Sheet A ... can I use a macro to export all data from
"Workbook 1, Sheet A" to "Workbook 2 Sheet B" ??

Thanks,
Mayte

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default help with macro to export data

great ...thanks a lot !!

Cheers,
Matyte

"Stefi" wrote:

Maybe you can use this macro:

Sub sheetcopy()
Workbooks("Workbook 1.xls").Sheets("Sheet A").Copy _
After:=Workbooks("Workbook 2.xls"). _
Sheets(Workbooks("Workbook 2.xls").Sheets.Count)
Workbooks("Workbook 2.xls"). _
Sheets(Workbooks("Workbook 2.xls").Sheets.Count).Name = "Sheet B"
End Sub

Regards,
Stefi


€˛Mayte€¯ ezt Ć*rta:

can I use a macro to export data to another workbook? I mean, if I have data
on workbook 1, Sheet A ... can I use a macro to export all data from
"Workbook 1, Sheet A" to "Workbook 2 Sheet B" ??

Thanks,
Mayte

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
excel xml export macro Dan Excel Discussion (Misc queries) 0 March 19th 08 03:16 PM
how do i create a macro to export a chart to powerpoint? NPAT Charts and Charting in Excel 1 November 16th 07 10:23 AM
Export custom Macro Button Images RWN Excel Discussion (Misc queries) 1 November 26th 06 10:53 AM
Macro to export as Text, only the results not the formula [email protected] Excel Discussion (Misc queries) 1 July 6th 06 04:41 PM
Export Excel Data to Access With a Macro!!! Jac Excel Discussion (Misc queries) 3 December 28th 04 07:39 PM


All times are GMT +1. The time now is 01:05 AM.

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"