Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default worksheet name to appear in cell

Hello, thank you to all that answer the following post

I have set up my workbook to simulate my company's order forms. For each
day's work I could add as few as 5 to as many as 20. This ng has assisted
many times with developing my workbook to this point.

One of the things it currently does, will be to insert a new worksheet tab,
copy and paste sort of a template of the order form, then rename it "temp"
which would be renamed again based on the customer info i collect. I would
then enter the customer information and repeat those steps for the next
order/customer.

As I've improved the workbook's functionality (based on my requirements) I
have it calculating the total amount owed, then in three different fields I
would enter the amount paid in cash, cheque or charge.

Now what I want to do with each of these fields is to have a separate
worksheet totalling the cash, cheque and charge amounts. And the following
formula has been given...

=SUM('OF1:Insert Template DO NOT DELETE'!BY225)
OF1........ worksheet is a blank worksheet
Insert Template DO NOT DELETE........ is the Order Form template

Instead of one field on my Cash Counter worksheet using the above formula, I
would like to have it a bit different and I haven't been able to figure out
how to do this...

I would like Cash Counter to have the following
A B
Cash cash Amount
OrderFormWorksheet1 =OrderFormWorksheet1!B10
OrderFormWorksheet2 =OrderFormWorksheet2!B10




=Count(customers using cash) =TotalChashAmount


OrderFormWorksheet1 =OrderFormWorksheet1!B11
OrderFormWorksheet2 =OrderFormWorksheet2!B11



=Count(customers using cheques) =TotalChequesAmount


Charge Charge Amount
OrderFormWorksheet1 =OrderFormWorksheet1!B12
OrderFormWorksheet2 =OrderFormWorksheet2!B12



=Count(customers using credit cards) =TotalChargeAmount


But there is a problem with how I would like this to work and how I
understand how to make it work...

I need to have a way to insert a row under each of the above sections (cash,
cheque, and charge) when a new worksheet is inserted. I also need it to
refer to the new worksheet name when its changed from "temp" to the
customer's account name.


Can someone help me?
If you need me to explain any part of this further to help you help me,
please ask.

Thank you,


Mr BT


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 120
Default worksheet name to appear in cell

For referencing the sheet name...

While the sheet is still active, I would suggest to apply it (the sheet's
name) to a temporary variable:

Dim shName As String
shName = ActiveSheet.Name ' now you can use this "string" name of the
sheet in another location in your code

As for your other requests, I am a bit unclear on all you are wanting. If
you want you an email me an example and I will look it over. Please provide
as much detail as possible if you opt to email it to me.

Mark Ivey


--


UoP e-mail:

Personal e-mail:

"Mr BT" wrote in message
news:d8Hch.418539$R63.244671@pd7urf1no...
Hello, thank you to all that answer the following post

I have set up my workbook to simulate my company's order forms. For each
day's work I could add as few as 5 to as many as 20. This ng has assisted
many times with developing my workbook to this point.

One of the things it currently does, will be to insert a new worksheet
tab, copy and paste sort of a template of the order form, then rename it
"temp" which would be renamed again based on the customer info i collect.
I would then enter the customer information and repeat those steps for the
next order/customer.

As I've improved the workbook's functionality (based on my requirements) I
have it calculating the total amount owed, then in three different fields
I would enter the amount paid in cash, cheque or charge.

Now what I want to do with each of these fields is to have a separate
worksheet totalling the cash, cheque and charge amounts. And the following
formula has been given...

=SUM('OF1:Insert Template DO NOT DELETE'!BY225)
OF1........ worksheet is a blank worksheet
Insert Template DO NOT DELETE........ is the Order Form template

Instead of one field on my Cash Counter worksheet using the above formula,
I would like to have it a bit different and I haven't been able to figure
out how to do this...

I would like Cash Counter to have the following
A B
Cash cash Amount
OrderFormWorksheet1 =OrderFormWorksheet1!B10
OrderFormWorksheet2 =OrderFormWorksheet2!B10




=Count(customers using cash) =TotalChashAmount


OrderFormWorksheet1 =OrderFormWorksheet1!B11
OrderFormWorksheet2 =OrderFormWorksheet2!B11



=Count(customers using cheques) =TotalChequesAmount


Charge Charge Amount
OrderFormWorksheet1 =OrderFormWorksheet1!B12
OrderFormWorksheet2 =OrderFormWorksheet2!B12



=Count(customers using credit cards) =TotalChargeAmount


But there is a problem with how I would like this to work and how I
understand how to make it work...

I need to have a way to insert a row under each of the above sections
(cash, cheque, and charge) when a new worksheet is inserted. I also need
it to refer to the new worksheet name when its changed from "temp" to the
customer's account name.


Can someone help me?
If you need me to explain any part of this further to help you help me,
please ask.

Thank you,


Mr BT



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
How:Add New Worksheet that copies the cell of the previous sheet JLM Excel Worksheet Functions 1 August 24th 06 08:04 PM
How do I get ONLY new info from 1 Worksheet to another automatical Elaine Excel Worksheet Functions 6 July 13th 06 05:45 PM
fill cell with color from other worksheet Crakel Excel Discussion (Misc queries) 4 April 19th 06 05:14 AM
Conversion of Cell Contents into a Functional Worksheet name ? GMJT Excel Worksheet Functions 1 August 21st 05 04:59 PM
Refrencing another cell in a worksheet that "could" exist KimberlyC Excel Worksheet Functions 1 February 7th 05 07:09 PM


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