Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default How do I display the result of a function on seperate worksheet e.

I have a cell that is counting text fields. Each month I want to capture the
count for that month and display it on a seperate worksheet.

Thanks for your help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 192
Default How do I display the result of a function on seperate worksheet e.

Can you not just reference the first sheet in your second sheet? You said
you already have a cell that is doing the counting.

=*Sheet Name*!*Cell Name*
=Sheet1!B8


--
-SA


"Beth" wrote:

I have a cell that is counting text fields. Each month I want to capture the
count for that month and display it on a seperate worksheet.

Thanks for your help

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,365
Default How do I display the result of a function on seperate worksheet e.

Since the one doing the counting may change it's value (and so would any on
other sheets that refer to it), you may want to think of this:
Each month select the cell with the count in it and use Edit | Copy (or
[Ctrl]+[C]) and then go to where you want to record it and use
Edit | Paste Special with the "Values" option selected. That will copy the
value into the new cell so that it won't change when the original counting
cell does.


"Beth" wrote:

I have a cell that is counting text fields. Each month I want to capture the
count for that month and display it on a seperate worksheet.

Thanks for your help

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default How do I display the result of a function on seperate worksheete.

You could try the following:

---------------------------------------------
Sub FixedDate()
Dim WS As Worksheet
Dim Y As Double
Dim m As Double
Dim Sname As String
Dim Celda As Range

Set Celda = Application.InputBox(prompt:="Current month's count",
Type:=8)
Y = Year(Date)
m = month(Date)

Sname = Str(m) & "-" & Str(Y)

For i = 1 To ActiveWorkbook.Sheets.Count
If ActiveWorkbook.Sheets(i).Name = Sname Then
MsgBox "there's already a worksheet for this month"
Exit Sub
End If
Next i

Set WS = Worksheets.Add
WS.Name = Sname
WS.Cells(1, 1) = Celda.Value

End Sub
----------------------------

it prompts you for the cell that's holding the count, then creates a
new worksheet named "month - year" and writes the count on cell A1. It
doesn't do much erro trapping but it should work. Hope this helps,

Juan M
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
Incorrect result using NPER worksheet function KG Old Wolf Excel Worksheet Functions 7 November 3rd 08 02:49 AM
How do I have seperate headers for seperate pages in 1 worksheet? JessicaDL Excel Discussion (Misc queries) 1 February 22nd 08 07:14 PM
Link a cell from another worksheet as a result in a function? LisaLisaKK Excel Worksheet Functions 1 September 7th 06 06:47 PM
Enter data and display function result in same cell ChrisR Excel Discussion (Misc queries) 1 June 21st 06 12:15 AM
How can I put result of If worksheet function into a different cel Janice Excel Worksheet Functions 1 August 30th 05 08:01 PM


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