Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default create new book and copy sheet into..


I am trying to copy a specified worksheet from one book, create a new
workbook with todays date and file name, and then drop the copied
worksheet into it.

It is testing my ability.

Can anyone help.


Thanks


--
Kstalker
------------------------------------------------------------------------
Kstalker's Profile: http://www.excelforum.com/member.php...o&userid=24699
View this thread: http://www.excelforum.com/showthread...hreadid=383762

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default create new book and copy sheet into..


try right mouse button
select move or copy
select new sheet

select create a copy
click ok


--
matrix5166
------------------------------------------------------------------------
matrix5166's Profile: http://www.excelforum.com/member.php...o&userid=24820
View this thread: http://www.excelforum.com/showthread...hreadid=383762

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default create new book and copy sheet into..

Hi Kristan,

Try:

Sub Tester02()

Dim Wb As Workbook
Dim ws As Worksheet
Dim sStr As String

Set Wb = Workbooks("MyBook1.xls")
Set ws = Worksheets("MySheet")

sStr = "MyNewBook " & Format(Date, "mm-dd-yyy")

ws.Copy
ActiveWorkbook.SaveAs sStr

End Sub



"Kstalker" wrote in
message ...

I am trying to copy a specified worksheet from one book, create a new
workbook with todays date and file name, and then drop the copied
worksheet into it.

It is testing my ability.

Can anyone help.


Thanks


--
Kstalker
------------------------------------------------------------------------
Kstalker's Profile:
http://www.excelforum.com/member.php...o&userid=24699
View this thread: http://www.excelforum.com/showthread...hreadid=383762



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default create new book and copy sheet into..


Norman.

Worked well thanks.

Now need to direct the newly created workbook to a specified location.
Have read alot of threads but my basics are letting me down. Or lack o
them.

Regards

Krista

--
Kstalke
-----------------------------------------------------------------------
Kstalker's Profile: http://www.excelforum.com/member.php...fo&userid=2469
View this thread: http://www.excelforum.com/showthread.php?threadid=38376

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default create new book and copy sheet into..

Activeworkbook.SaveAs "C:\MyExistingFolder\" & Format(Date, "mm-dd-yyy")

--
Regards,
Tom Ogilvy

"Kstalker" wrote in
message ...

Norman.

Worked well thanks.

Now need to direct the newly created workbook to a specified location.
Have read alot of threads but my basics are letting me down. Or lack of
them.

Regards

Kristan


--
Kstalker
------------------------------------------------------------------------
Kstalker's Profile:

http://www.excelforum.com/member.php...o&userid=24699
View this thread: http://www.excelforum.com/showthread...hreadid=383762





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default create new book and copy sheet into..


Thanks Tom and Norman

Works a treat.

Enjoying this VBA learning curve.

Regards

Kristan


--
Kstalker
------------------------------------------------------------------------
Kstalker's Profile: http://www.excelforum.com/member.php...o&userid=24699
View this thread: http://www.excelforum.com/showthread...hreadid=383762

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
Can not copy a sheet to another book dveer Excel Worksheet Functions 7 April 28th 10 03:47 PM
Too Few Rows to copy sheet to another book snowboardbaltimore Excel Worksheet Functions 2 April 19th 10 05:36 PM
Create book pages, on one sheet from list Barbara Excel Discussion (Misc queries) 3 January 22nd 09 01:04 AM
Copy a sheet to a new book unsuccessful sunan Excel Discussion (Misc queries) 3 June 23rd 08 12:52 PM
How do I create a sheet to book a training room? destiny Excel Discussion (Misc queries) 0 January 17th 06 09:46 PM


All times are GMT +1. The time now is 12:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"