Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Greegan
 
Posts: n/a
Default I need help with a macro which will copy a worksheet and..

I need to create a macro which copies a blank "invoice" to the workbook.
That is pretty simple, however I have a tally sheet adding up costs, taxes,
goods sold, ect.
I need each new sheet to be included on the tally sheet.

I tried to explain this before but now that I've looked over my question I
understand I wasn't very clear.
I would appreciate any assistance given.




I am trying to reproduce our company's product order invoices on the
computer, in Excel. I'm using Office XP on XP Home Ed.

I suppose if this couldn't be done, I could simply create maybe 50
worksheets and include them on the tally sheet. I would need to know two
things for this direction choice however...
How would I record a macro where I would unhide the topmost worksheet on the
unhide list, rather than specifying a sheet's name.
Also, if I go this direction and as we go along using this workbook decide
to change the worksheet names (to names of our clients for example) will i
need to change the reference on the tally worksheet?

Thanks again,

Scott


  #2   Report Post  
Rowan
 
Posts: n/a
Default

It depends on how you do your totals.

Lets say you start off with 3 sheets. Tally, ClientA and ClientB in that
order. On the Tally sheet there are two ways you can sum cell A1 from each of
the other sheets. You can use =ClientA!A1+ClientB!A1 or you can use
=SUM(ClientA:ClientB!A1).

If you use the second option =SUM(ClientA:ClientB!A1), any sheet you insert
between ClientA and ClientB will be included in the Tally total. So a very
simple macro would be something like:

dim nSht as worksheet
set nsht = sheets.add
nsht.move befo=sheets(sheets.count)

Hope this helps
Rowan

PS changes to the sheet names will automatically be updated to the formuas.

"Greegan" wrote:

I need to create a macro which copies a blank "invoice" to the workbook.
That is pretty simple, however I have a tally sheet adding up costs, taxes,
goods sold, ect.
I need each new sheet to be included on the tally sheet.

I tried to explain this before but now that I've looked over my question I
understand I wasn't very clear.
I would appreciate any assistance given.




I am trying to reproduce our company's product order invoices on the
computer, in Excel. I'm using Office XP on XP Home Ed.

I suppose if this couldn't be done, I could simply create maybe 50
worksheets and include them on the tally sheet. I would need to know two
things for this direction choice however...
How would I record a macro where I would unhide the topmost worksheet on the
unhide list, rather than specifying a sheet's name.
Also, if I go this direction and as we go along using this workbook decide
to change the worksheet names (to names of our clients for example) will i
need to change the reference on the tally worksheet?

Thanks again,

Scott



  #3   Report Post  
Greegan
 
Posts: n/a
Default

Thank you very much.
I'm sure I will be asking for more assistance regarding this. This group has
always been willing to help. KUDOS to all of you.
"Rowan" wrote in message
...
It depends on how you do your totals.

Lets say you start off with 3 sheets. Tally, ClientA and ClientB in that
order. On the Tally sheet there are two ways you can sum cell A1 from each
of
the other sheets. You can use =ClientA!A1+ClientB!A1 or you can use
=SUM(ClientA:ClientB!A1).

If you use the second option =SUM(ClientA:ClientB!A1), any sheet you
insert
between ClientA and ClientB will be included in the Tally total. So a very
simple macro would be something like:

dim nSht as worksheet
set nsht = sheets.add
nsht.move befo=sheets(sheets.count)

Hope this helps
Rowan

PS changes to the sheet names will automatically be updated to the
formuas.

"Greegan" wrote:

I need to create a macro which copies a blank "invoice" to the workbook.
That is pretty simple, however I have a tally sheet adding up costs,
taxes,
goods sold, ect.
I need each new sheet to be included on the tally sheet.

I tried to explain this before but now that I've looked over my question
I
understand I wasn't very clear.
I would appreciate any assistance given.




I am trying to reproduce our company's product order invoices on the
computer, in Excel. I'm using Office XP on XP Home Ed.

I suppose if this couldn't be done, I could simply create maybe 50
worksheets and include them on the tally sheet. I would need to know two
things for this direction choice however...
How would I record a macro where I would unhide the topmost worksheet on
the
unhide list, rather than specifying a sheet's name.
Also, if I go this direction and as we go along using this workbook
decide
to change the worksheet names (to names of our clients for example) will
i
need to change the reference on the tally worksheet?

Thanks again,

Scott





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
macro to copy into different worksheets sarahphonics Excel Discussion (Misc queries) 2 June 30th 05 03:16 PM
How to copy subtotalled cells to a new worksheet (in a macro), wi. LJB Excel Discussion (Misc queries) 2 June 23rd 05 02:00 AM
Macro to copy value in empty cells Esrei Excel Discussion (Misc queries) 3 April 19th 05 03:54 PM
Macro - to copy duplicate rows to another sheet [email protected] Excel Worksheet Functions 2 April 19th 05 01:53 AM
Activate a macro to insert a row and copy the formuals from the rows above to the blank row oil_driller Excel Discussion (Misc queries) 1 February 11th 05 03:30 PM


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