PC Review


Reply
Thread Tools Rate Thread

Create new sheet with a macro

 
 
=?Utf-8?B?Sm9jaw==?=
Guest
Posts: n/a
 
      19th Oct 2007
I have a sheet named "Sep 07".
How can I create a new sheet, automatically named "Oct 07", and copy
formatting (but not data) as well as vba code and buttons from "Sep 07"
(Range A1:M25) by using a macro?
Obviously, at the end of October, the new sheet will need to be called "Nov
07" and so on. How would I deal with that?
Thanks,
--
Traa Dy Liooar

Jock
 
Reply With Quote
 
 
 
 
Bernard Liengme
Guest
Posts: n/a
 
      19th Oct 2007
Do you need a macro?
Follow these steps (use a test workbook)
1 Click the tab for Sep 07
2 Hold CTRL
3 Drag the tab to the right; this makes a worksheet named Sept 07 (2)
4 On the new sheet, click the top left corner where column and row heading
meet (or use CTRL+ A maybe twice) to select the whole worksheet. Now use
Delete key. All cell entries go but formats and text boxes etc remain.
5 Rename the sheet to taste
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Jock" <(E-Mail Removed)> wrote in message
news:0C1A2330-2A07-4DC8-9713-(E-Mail Removed)...
>I have a sheet named "Sep 07".
> How can I create a new sheet, automatically named "Oct 07", and copy
> formatting (but not data) as well as vba code and buttons from "Sep 07"
> (Range A1:M25) by using a macro?
> Obviously, at the end of October, the new sheet will need to be called
> "Nov
> 07" and so on. How would I deal with that?
> Thanks,
> --
> Traa Dy Liooar
>
> Jock



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to create new sheet Kim Microsoft Excel Misc 5 25th Apr 2009 02:51 AM
Macro to Create Sheet & Duplicate Sheet Herve_Rob Microsoft Excel Programming 1 7th Jun 2006 09:47 PM
How can you create a macro on a protected sheet? =?Utf-8?B?RmVsaXg=?= Microsoft Excel Misc 2 23rd Feb 2006 12:37 AM
How to create a Macro to Copy Information in one sheet to another sheet. poppy Microsoft Excel Programming 3 28th Jul 2004 07:26 AM
Do you know how to create a new sheet in a file by macro? dukejas Microsoft Excel Programming 2 8th Nov 2003 12:56 AM


Features
 

Advertising
 

Newsgroups
 


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