cvincent
Board Regular
- Joined
- Aug 28, 2011
- Messages
- 66
I have been able to use vba somewhat, by lookiing into other file codes, but I need a lot of help!
I have an excel file, "Estimate of Charges Worksheet.xlsm", with calculations on one tab. Those calculations transfer over to a hidden tab in the file with named columns for the data. That tab name is “Ltr Data”.
I have a word document that is set up as a merge letter, named "Estimated Charges - Letter.doc"
I want to run a macro in excel that opens the Word document and merges the data into a letter, then closes the merge file.
I will only be doing one letter at a time, so it only needs to pull one line of data from the spreadsheet for the letter. New info would need to be entered to create a second letter, etc.
I am using Excel 2010, and Word 2010 (but it needs to be compatible with Word 97-03).
Because people will be putting the files into their own folders, I need to set paths (which I picked up from another file), as such:
excelPath = ThisWorkbook.Path & "\Estimate of Charges Worksheett.xlsm"
wordPath = ThisWorkbook.Path & "\Estimated Charges - Letter.doc"
I have been working on this all day and getting nowhere. Your assistance would be greatly appreciated!
Thanks and have a blessed day!
I have an excel file, "Estimate of Charges Worksheet.xlsm", with calculations on one tab. Those calculations transfer over to a hidden tab in the file with named columns for the data. That tab name is “Ltr Data”.
I have a word document that is set up as a merge letter, named "Estimated Charges - Letter.doc"
I want to run a macro in excel that opens the Word document and merges the data into a letter, then closes the merge file.
I will only be doing one letter at a time, so it only needs to pull one line of data from the spreadsheet for the letter. New info would need to be entered to create a second letter, etc.
I am using Excel 2010, and Word 2010 (but it needs to be compatible with Word 97-03).
Because people will be putting the files into their own folders, I need to set paths (which I picked up from another file), as such:
excelPath = ThisWorkbook.Path & "\Estimate of Charges Worksheett.xlsm"
wordPath = ThisWorkbook.Path & "\Estimated Charges - Letter.doc"
I have been working on this all day and getting nowhere. Your assistance would be greatly appreciated!
Thanks and have a blessed day!