LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Macro to create a new tab based on an existing tab

the first thing I would do is have a blank templet sheet that I would copy
for each new employee. When adding new rows in the summary sheet I would
copy the last employee and insert a new line above the last employee. Thsi
is done so if there arre any total rows at the bottom the formulas for the
totals will be automatically changed when the row is added. I would then
highlight the entire row for the new employee and use REPLACE to change the
sheet name from the old employee to the new employee.

I described the actions as if you would manually do the operations put the
same thing can be done in a macro.

"Maypop" wrote:

I have a spreadsheet that is effectively a payroll document it has a main
table with a line for each employee and a tab for each employee which are the
payslips and the information feeds from the main table into the tabs, I need
to create a macro that will add a new tab (for a new employee) based on the
last tab (scructure and functions) but move all the ref functions down one
row in the main table, meaning it will pull the details of the latest person
added to the spreadsheet. If anyone can provide any insight it would be
greatfully recieved.

 
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
Create new records from existing ones based on 'rule'? msnyc07 Excel Worksheet Functions 1 May 28th 10 02:38 PM
create named worksheet based on existing numeration SteveDB1 Excel Programming 3 February 25th 08 03:45 PM
Macro to create a new worksheet that is a copy of an existing one? Kai Cunningham[_2_] Excel Programming 3 July 3rd 07 02:30 AM
How do I create an excel macro to append to a cell with existing i zola_tiara Excel Discussion (Misc queries) 4 September 14th 05 08:22 PM
Dynamically create worksheets in Excel based off existing data? tlozier Excel Discussion (Misc queries) 1 September 10th 05 12:25 AM


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