Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default New Spreadsheet Created Based on Value Column "O" (alpha)

I'm creating invoices using Excel 2003 (Office Pro) in Windows XP SP2

My summary spreadhseet contains names in Column O (Alphabetic "O")

For duplicate values in Column "O" of my summary spreadsheet, I need to
create a new Invoice (spreadsheet) based on duplicate Values in column "O".

I know enough to sort first by Column "O" on the summary spreadsheet, and I
know how to add new spreadsheets, but I don't know how to generate a new
spreadsheet based on a change in the value in column "O".

Example names from Column "O"

Smith John
Brown Harry
Green Rita Mae

Can someone provide some ideas for this?
--
Thank you so much for your help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default New Spreadsheet Created Based on Value Column "O" (alpha)

Do you want to add new workbooks or new worksheets? Spreadsheet is a
general term that can mean eaither of the other two or both.


"Dandelo" wrote in message
...
I'm creating invoices using Excel 2003 (Office Pro) in Windows XP SP2

My summary spreadhseet contains names in Column O (Alphabetic "O")

For duplicate values in Column "O" of my summary spreadsheet, I need to
create a new Invoice (spreadsheet) based on duplicate Values in column
"O".

I know enough to sort first by Column "O" on the summary spreadsheet, and
I
know how to add new spreadsheets, but I don't know how to generate a new
spreadsheet based on a change in the value in column "O".

Example names from Column "O"

Smith John
Brown Harry
Green Rita Mae

Can someone provide some ideas for this?
--
Thank you so much for your help!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default New Spreadsheet Created Based on Value Column "O" (alpha)

I would like to add new worksheets ( instead of new workbooks)
--
Thank you so much for your help!


"JLGWhiz" wrote:

Do you want to add new workbooks or new worksheets? Spreadsheet is a
general term that can mean eaither of the other two or both.


"Dandelo" wrote in message
...
I'm creating invoices using Excel 2003 (Office Pro) in Windows XP SP2

My summary spreadhseet contains names in Column O (Alphabetic "O")

For duplicate values in Column "O" of my summary spreadsheet, I need to
create a new Invoice (spreadsheet) based on duplicate Values in column
"O".

I know enough to sort first by Column "O" on the summary spreadsheet, and
I
know how to add new spreadsheets, but I don't know how to generate a new
spreadsheet based on a change in the value in column "O".

Example names from Column "O"

Smith John
Brown Harry
Green Rita Mae

Can someone provide some ideas for this?
--
Thank you so much for your help!




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default New Spreadsheet Created Based on Value Column "O" (alpha)

The best I can offer from the information you have provided is to suggest
using the Worksheet Change event to accomplish what you want to do. It would
look something like this:

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Range("O:O"), Target) Is Nothing Then
Worksheet.Add
End If
End Sub

Caution: This code, when put in the worksheet code module, will execute for
ANY change in column O. That includes new entry, delete, plus or minus. You
can narrow it down some by using If ... Then statements to set parameters
that will control when the code will execute. But first be sure this is the
route you want to take.

"Dandelo" wrote:

I would like to add new worksheets ( instead of new workbooks)
--
Thank you so much for your help!


"JLGWhiz" wrote:

Do you want to add new workbooks or new worksheets? Spreadsheet is a
general term that can mean eaither of the other two or both.


"Dandelo" wrote in message
...
I'm creating invoices using Excel 2003 (Office Pro) in Windows XP SP2

My summary spreadhseet contains names in Column O (Alphabetic "O")

For duplicate values in Column "O" of my summary spreadsheet, I need to
create a new Invoice (spreadsheet) based on duplicate Values in column
"O".

I know enough to sort first by Column "O" on the summary spreadsheet, and
I
know how to add new spreadsheets, but I don't know how to generate a new
spreadsheet based on a change in the value in column "O".

Example names from Column "O"

Smith John
Brown Harry
Green Rita Mae

Can someone provide some ideas for this?
--
Thank you so much for your help!




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default New Spreadsheet Created Based on Value Column "O" (alpha)

Thank you. I'll add this to the macro I'm working and see how it works.
--
Thank you so much for your help!


"JLGWhiz" wrote:

The best I can offer from the information you have provided is to suggest
using the Worksheet Change event to accomplish what you want to do. It would
look something like this:

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Range("O:O"), Target) Is Nothing Then
Worksheet.Add
End If
End Sub

Caution: This code, when put in the worksheet code module, will execute for
ANY change in column O. That includes new entry, delete, plus or minus. You
can narrow it down some by using If ... Then statements to set parameters
that will control when the code will execute. But first be sure this is the
route you want to take.

"Dandelo" wrote:

I would like to add new worksheets ( instead of new workbooks)
--
Thank you so much for your help!


"JLGWhiz" wrote:

Do you want to add new workbooks or new worksheets? Spreadsheet is a
general term that can mean eaither of the other two or both.


"Dandelo" wrote in message
...
I'm creating invoices using Excel 2003 (Office Pro) in Windows XP SP2

My summary spreadhseet contains names in Column O (Alphabetic "O")

For duplicate values in Column "O" of my summary spreadsheet, I need to
create a new Invoice (spreadsheet) based on duplicate Values in column
"O".

I know enough to sort first by Column "O" on the summary spreadsheet, and
I
know how to add new spreadsheets, but I don't know how to generate a new
spreadsheet based on a change in the value in column "O".

Example names from Column "O"

Smith John
Brown Harry
Green Rita Mae

Can someone provide some ideas for this?
--
Thank you so much for your help!





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 do I get rid of "Spreadsheet was created by a newer version" Scott Excel Discussion (Misc queries) 3 August 3rd 07 03:13 PM
If A3=alpha numeric,"X", if A3=text,"Y", Blank Gary Excel Worksheet Functions 16 August 8th 06 08:27 PM
If A3=alpha numeric,"X", if A3=text,"Y", Blank Gary Excel Programming 2 August 7th 06 08:47 AM
Macro to concatenate into "B1" B2 thru B"x" based on new data in "Col A" Dennis Excel Discussion (Misc queries) 0 July 17th 06 02:38 PM
Sending macro based e-mail with built-in "Heading" and "Text" Prabha Excel Programming 3 January 17th 05 02:11 PM


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