Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Dom
 
Posts: n/a
Default Macro for adding more sheets

Hi,

I am creating a workbook that needs to be able to generate additional sheets
when needed. For example, I have one page (Top Page) that lists the total
cost of timber from different suppliers plus who those suppliers are. Each
supplier has it's own sub-page where the materials they have supplied is
totalled up. At present, the Top Page has five rows that allow people to
enter the company name, address and total cost. If someone wanted to use
the workbook to add a sixth supplier, I would like for them to be able to
click on a button marked "Add Supplier". This should then add an extra row
and automatically link it to a newly created page that will be formatted
using the same template as the pages for the other five companies. How do I
set up the macro that will do this? i tried to figure this out but could
not. Thank you.



  #2   Report Post  
Posted to microsoft.public.excel.misc
davesexcel
 
Posts: n/a
Default Macro for adding more sheets


http://www.mvps.org/dmcritchie/excel/sheets.htm

this site has a worksheet change code that adds a sheet when column f
changes


this site has code for adding rows
http://www.mvps.org/dmcritchie/excel/insrtrow.htm

heres a code that checks the selected range, if there is a sheet name
in the selected range..well I will attatch the post and you can see
what it does
http://forums.techguy.org/business-a...l-content.html


--
davesexcel


------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=537521

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
Microsoft Visual Basic: Compile error: Sum or Function not defined Dmitry Excel Worksheet Functions 12 April 3rd 06 07:28 AM
Copying Macro w/ different sheets liseladele Excel Worksheet Functions 1 March 22nd 06 01:43 AM
Macro that stores all sheets as tab-delimited text files [email protected] Excel Discussion (Misc queries) 2 February 14th 06 04:02 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Macro to link Sheets to main workbook raven_guy Excel Discussion (Misc queries) 0 June 24th 05 12:36 PM


All times are GMT +1. The time now is 01:10 PM.

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"