Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Impoting excel sheet to new workbook

HI All,

I have a excel workbook which contains 6-7 sheets. i want to write a vba code .. so that when i run, it should create a new work book on my desktop and import all the 7 sheets from the source Workbook.


Regards
Kumar
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,522
Default Impoting excel sheet to new workbook

On Monday, July 30, 2012 2:55:51 AM UTC-5, kumark wrote:
HI All,



I have a excel workbook which contains 6-7 sheets. i want to write a

vba code .. so that when i run, it should create a new work book on my

desktop and import all the 7 sheets from the source Workbook.





Regards

Kumar









--

kumark


Have you considered using saveAS
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 538
Default Impoting excel sheet to new workbook

Don Guillett wrote:

On Monday, July 30, 2012 2:55:51 AM UTC-5, kumark wrote:

I have a excel workbook which contains 6-7 sheets. i want to write a

vba code .. so that when i run, it should create a new work book on my

desktop and import all the 7 sheets from the source Workbook.


Have you considered using saveAS


Or copying the existing file?

--
Forest? What forest? I just see a bunch of trees!
  #4   Report Post  
Junior Member
 
Posts: 2
Default

Quote:
Originally Posted by Auric__ View Post
Don Guillett wrote:

On Monday, July 30, 2012 2:55:51 AM UTC-5, kumark wrote:

I have a excel workbook which contains 6-7 sheets. i want to write a

vba code .. so that when i run, it should create a new work book on my

desktop and import all the 7 sheets from the source Workbook.


Have you considered using saveAS


Or copying the existing file?

--
Forest? What forest? I just see a bunch of trees!





Sub ImportTemplate()
FileCopy "c:\Adventure.xlsm", _
ActiveWorkbook.Path & "Adventureworks.xlsm"

Name "C:\WorkedAdventist.xlsm" As "C:\Documents and Settings\All users\Desktop\Adventist.xlsm"
End Sub
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
Save each sheet of multi-sheet workbook as a single-sheet workbook CTB Excel Programming 3 May 17th 11 08:40 AM
code for impoting userform and module [email protected] Excel Programming 0 October 2nd 09 05:59 PM
Problem with the format of cells after impoting from Access Siuan Excel Discussion (Misc queries) 2 July 18th 06 01:14 PM
Impoting data from Sheet 1 to Sheet 2 a-leano Excel Discussion (Misc queries) 1 April 20th 05 01:05 AM
Impoting a text file - Excel 2000 VS. 2003 Tomer Excel Programming 0 December 29th 03 01:06 PM


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