#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default Macro Help

I have a spreadsheet that contains two worksheets. One is the contents page
and the other is a template. The template has a command button when pressed
creates a new worksheet.

The new worksheets are allocated a number in sequence.

Each time a worksheet is created from the template I would like it to
1) create a order number 06/775 and put this into cell A1 on worksheet 1.
The order number in cell A1 is updated each time a worksheet is created.
2) put the order number into cell C7 in the contents worksheet.
3) when worksheet 2 is created update the order number in cell A1 to 06/776.
4) put the order number into cell C8 in the contents worksheet

If this is possible any help is appreciated.

Many thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default Macro Help

Try doing a Google Search; excel sub invoice
and a Google Groups Search: group:*excel* sub invoice
---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"zephyr" wrote in message ...
I have a spreadsheet that contains two worksheets. One is the contents page
and the other is a template. The template has a command button when pressed
creates a new worksheet.

The new worksheets are allocated a number in sequence.

Each time a worksheet is created from the template I would like it to
1) create a order number 06/775 and put this into cell A1 on worksheet 1.
The order number in cell A1 is updated each time a worksheet is created.
2) put the order number into cell C7 in the contents worksheet.
3) when worksheet 2 is created update the order number in cell A1 to 06/776.
4) put the order number into cell C8 in the contents worksheet

If this is possible any help is appreciated.

Many thanks



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
error when running cut & paste macro Otto Moehrbach Excel Worksheet Functions 4 August 9th 06 01:49 PM
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Search, Copy, Paste Macro in Excel [email protected] Excel Worksheet Functions 0 January 3rd 06 06:51 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Highlight Range - wrong macro, please edit. Danny Excel Worksheet Functions 8 October 19th 05 11:11 PM


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