Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default Use of a Key line

I have over 300 test policies that require calculations (expected results).
I have developed a "key" line that will produce the correct results. This
"key" is in the exact format as the input for all the test policies (which
has approximately 15 columns of input data). I'm not sure what is the best
way to run all 300 policies through this key and print the results. I think
that a macro would be one solution, but I'm relatively new with macros
(although I'm easily trainable), but would a macro be the best solution. If
so, is there an example (of a macro) that could be provided that would copy
the data to the Key and print the result.

Thanks in advance for any help that could be provided.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default Use of a Key line

is there an example (of a macro) that could be provided that would copy
the data to the Key and print the result.


Can you give us an example of the :

data
the "key"
and the desired results.

Example:
Data: john walsh
Key: Proper case
Result: John Walsh

Also, Where is the Data (range, or Named Range) and where do you want the
results stored? or do you just want the results printed?

You can use something like:

Dim oCell as Range
Dim i as Integer

i=1
For each oCell in MyListA
Range("MyListB")(i)=Application.WorksheetFunction. Proper(oCell.Value)
i=i+1
Next oCell
Range("MyListB").Select

'Then print the selection



"Brad" wrote:

I have over 300 test policies that require calculations (expected results).
I have developed a "key" line that will produce the correct results. This
"key" is in the exact format as the input for all the test policies (which
has approximately 15 columns of input data). I'm not sure what is the best
way to run all 300 policies through this key and print the results. I think
that a macro would be one solution, but I'm relatively new with macros
(although I'm easily trainable), but would a macro be the best solution. If
so, is there an example (of a macro) that could be provided that would copy
the data to the Key and print the result.

Thanks in advance for any help that could be provided.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default Use of a Key line

Example of the data (on tab "All Test conditions")
Policy number 10 digits column B
Product type Column C
State column D
Gender column E
Age column F
Amount 1 column G
Benefit 1 column H
Benefit 2 column I
Benefit 3 column J


These fields are referenced in (tab Key) (on one line) from which all
expected results can be generated (found in tab Output)

"cush" wrote:

is there an example (of a macro) that could be provided that would copy
the data to the Key and print the result.


Can you give us an example of the :

data
the "key"
and the desired results.

Example:
Data: john walsh
Key: Proper case
Result: John Walsh

Also, Where is the Data (range, or Named Range) and where do you want the
results stored? or do you just want the results printed?

You can use something like:

Dim oCell as Range
Dim i as Integer

i=1
For each oCell in MyListA
Range("MyListB")(i)=Application.WorksheetFunction. Proper(oCell.Value)
i=i+1
Next oCell
Range("MyListB").Select

'Then print the selection



"Brad" wrote:

I have over 300 test policies that require calculations (expected results).
I have developed a "key" line that will produce the correct results. This
"key" is in the exact format as the input for all the test policies (which
has approximately 15 columns of input data). I'm not sure what is the best
way to run all 300 policies through this key and print the results. I think
that a macro would be one solution, but I'm relatively new with macros
(although I'm easily trainable), but would a macro be the best solution. If
so, is there an example (of a macro) that could be provided that would copy
the data to the Key and print the result.

Thanks in advance for any help that could be provided.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default Use of a Key line

Without seeing your workbook I couldn't help you.
Woodys lounge (Excel forum) allows you to attach
as small sample of a workbook (with proprietary
and personal data deleted or modified) so other
participants can see what you are trying to do
and review your code for suggestions.

You might try posting there with a small wbk:

http://www.wopr.com/cgi-bin/w3t/post...?Cat=&Board=xl


"Brad" wrote:

Example of the data (on tab "All Test conditions")
Policy number 10 digits column B
Product type Column C
State column D
Gender column E
Age column F
Amount 1 column G
Benefit 1 column H
Benefit 2 column I
Benefit 3 column J


These fields are referenced in (tab Key) (on one line) from which all
expected results can be generated (found in tab Output)

"cush" wrote:

is there an example (of a macro) that could be provided that would copy
the data to the Key and print the result.


Can you give us an example of the :

data
the "key"
and the desired results.

Example:
Data: john walsh
Key: Proper case
Result: John Walsh

Also, Where is the Data (range, or Named Range) and where do you want the
results stored? or do you just want the results printed?

You can use something like:

Dim oCell as Range
Dim i as Integer

i=1
For each oCell in MyListA
Range("MyListB")(i)=Application.WorksheetFunction. Proper(oCell.Value)
i=i+1
Next oCell
Range("MyListB").Select

'Then print the selection



"Brad" wrote:

I have over 300 test policies that require calculations (expected results).
I have developed a "key" line that will produce the correct results. This
"key" is in the exact format as the input for all the test policies (which
has approximately 15 columns of input data). I'm not sure what is the best
way to run all 300 policies through this key and print the results. I think
that a macro would be one solution, but I'm relatively new with macros
(although I'm easily trainable), but would a macro be the best solution. If
so, is there an example (of a macro) that could be provided that would copy
the data to the Key and print the result.

Thanks in advance for any help that could be provided.

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 to convert a dotted line to a solid line in a line graph Sharlz Charts and Charting in Excel 1 January 14th 09 04:51 AM
Make a line in a bar chart, and change color of any bars that exceed the line MarkM Excel Discussion (Misc queries) 4 July 5th 06 04:06 PM
coloring overy other line without doing so line by line gen Excel Worksheet Functions 5 April 1st 05 10:38 PM
Macro problem on, Yellowed line - previous line or next line. Ed Excel Programming 7 March 29th 05 09:37 PM
Reads entire *.txt file into string opposed to a desired line by line input. ej_user Excel Programming 3 October 11th 04 07:15 PM


All times are GMT +1. The time now is 01:04 PM.

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"