J
Jennifer
I create tables for nationwide medicare provider audits. (every doctor,
hospital or facility that provides care to medicare patients.)
The audits are based on contract number and county served.
I am currently working on an audit of 52 contracts covering over 900 counties.
I gather all of the information on a provider table (HSD2 all) and a
hosp/facilites table (HSD3 all)
I created a form that lists each contract/county combination.
From that form three tables are created and exported to excel and the form
advances to the next record. (A county/contract specific HSD2, HSD3 and a
summary HSD1)
If I need all three tables for all counties I use a macro named export all.
This works beautifully - it creates the three tables, exports them
appropriately. (all HSD1s for a contract in an excel spreadsheet for the
contract with a separate tab for each county, all HSD2s for a contract in an
excel spreadsheet for the contract with a separate tab for each county, all
HSD3s for a contract in an excel spreadsheet for the contract with a separate
tab for each county.
I have three other macros that create just an HSD1 or and HSD2 or an HSD3.
All work correctly if I run the manually press the create HSDX button. (900+
times)
When I create a macro to repeat the create any one of the individual tables
the exports are all messed up. They are all under the first contract number
and it overwrites the tabs, so I have counties from several contracts and am
missing a huge number of counties.
I have played with this for hours and can get any two tables to export
correctly, but can't just get an individual type to output correctly.
Any ideas?
hospital or facility that provides care to medicare patients.)
The audits are based on contract number and county served.
I am currently working on an audit of 52 contracts covering over 900 counties.
I gather all of the information on a provider table (HSD2 all) and a
hosp/facilites table (HSD3 all)
I created a form that lists each contract/county combination.
From that form three tables are created and exported to excel and the form
advances to the next record. (A county/contract specific HSD2, HSD3 and a
summary HSD1)
If I need all three tables for all counties I use a macro named export all.
This works beautifully - it creates the three tables, exports them
appropriately. (all HSD1s for a contract in an excel spreadsheet for the
contract with a separate tab for each county, all HSD2s for a contract in an
excel spreadsheet for the contract with a separate tab for each county, all
HSD3s for a contract in an excel spreadsheet for the contract with a separate
tab for each county.
I have three other macros that create just an HSD1 or and HSD2 or an HSD3.
All work correctly if I run the manually press the create HSDX button. (900+
times)
When I create a macro to repeat the create any one of the individual tables
the exports are all messed up. They are all under the first contract number
and it overwrites the tabs, so I have counties from several contracts and am
missing a huge number of counties.
I have played with this for hours and can get any two tables to export
correctly, but can't just get an individual type to output correctly.
Any ideas?