Hello All,
I have been bothered by a mail merge issue that I have been unable to resolve. Quick background... Excel worksheet data is linked to cells on a 2nd sheet that is used as the data source ("Pull Sheet$"). The Pull Sheet has Merge fields set up on a Word Template.
Patient Name: «LAST_NAME», «FIRST_NAME»
MR#: «MRN»
Date of Service: «DATE_of_SERVICE»
DOB: «DOB»
Age: «AGE»
Gender: «GENDER»
Diagnosis: «ICD10_CODES»
Procedure: «PROCEDURE_»
Surgeon: «ATTENDING_SURGEON»
Hospital: «HOSPITAL»
IONM Technologist: «TECHNOLOGIST»
Start Time: «Case_Start»
End Time: «Case_End»
Total Billing Time: «TOTAL_BILLABLE_TIME» hour(s)
IONM modality 1: «Mod1»
IONM modality 2: «Mod2»
IONM modality 3: «Mod3»
IONM modality 4: «Mod4»
IONM modality 5: «Mod5»
The data is visible on the excel sheet, but through the macro, it somehow gets lost and not making it to the Word document. When the Word document is processed, it comes through as such:
Patient Name: 0, 0
MR#: 0
Date of Service: 01/00/1900
DOB: 01/00/1900
Age: 118 Years, 1 Months, 27 Days
Gender: 0
Diagnosis: ,
Procedure: 0
Surgeon: 0
Hospital: 0
IONM Technologist: 0
Start Time: 12:00:00 AM
End Time: 12:00:00 AM
Total Billing Time: 0 hour(s)
IONM modality 1: 0
IONM modality 2: 0
IONM modality 3: 0
IONM modality 4: 0
IONM modality 5: 0
I have tried to change the order of the data in the Pull Sheet as some have pointed out it may be getting lost on data type. I have also removed and redirected the data source using the full network path. Seems like I am covering the same ground.
Here is the merge macro that I found online and have adapted. Maybe someone will find where I got this off track.
The excel file is shared and read only if that makes any difference.Please Login or Register to view this content.
Your help is appreciated.
Patrick
Bookmarks