Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 88
Default create copy of sheet tab (excel 2007) when opening workbook

i have a purchase order with three tabs and it works great.

but i have a new purchase order but when it opens, i want it to create
anoter copy of the first tab "Purchase Order" on which the user would enter
the required information, leaving the original sheet in tact.

any help in this macro would be appreciated.

jat


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,365
Default create copy of sheet tab (excel 2007) when opening workbook

This is a simple one-liner, choose which one would be best for you:
To put the new sheet at the beginning of the book:
Sheets("Sheet1").Copy Befo=Sheets(1)
or to put it at the end of the book
Sheets("Sheet1").Copy after:=Sheets(Sheets.Count)

If you want to put it in front of a particular existing sheet (such as
Sheet1 itself)
Sheets("Sheet1").Copy Befo=Sheets("Sheet1")

The newly inserted sheet will become the active sheet.

Hope this helps some

"jatman" wrote:

i have a purchase order with three tabs and it works great.

but i have a new purchase order but when it opens, i want it to create
anoter copy of the first tab "Purchase Order" on which the user would enter
the required information, leaving the original sheet in tact.

any help in this macro would be appreciated.

jat


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 2007 sheet and workbook protection Old Keith Excel Worksheet Functions 8 January 16th 17 07:15 AM
Copy a graph within a workbook in Excel 2007 Hubes Charts and Charting in Excel 6 December 13th 07 01:42 PM
Protecting an Excel 2007 workbook with a warning before opening mike_vr Excel Discussion (Misc queries) 2 August 14th 07 03:08 PM
Excel 2007 copy/move worksheet to another workbook Hoekie@work Excel Discussion (Misc queries) 0 June 21st 06 07:27 AM
Is there away to keep Excel from opening a copy of an already opened workbook and the pages not be at 100% but Marc New Users to Excel 1 March 13th 06 01:51 PM


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