Greetings all,
First off, anyone that can help me is a saint and I love you more than anything in the world.
Here is what I am trying to do.
I have a master excel document that will contain dynamic information (i.e will be updated often) I am trying to program this spreadsheet to cycle through each row of data and export that row to its own word document.
for example:
******
row1 (export) word1
row2 (export) word2
loop this until it hits a empty row and then kill the program
******
Here is what I have so far, however I am having trouble 1) exporting to word and 2) automating it.
<code>
Rows("1:1").Select
ChDir "C:\Documents and Settings\Brandon\Desktop"
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\Brandon\Desktop\Project1\2\test\test1.xls", FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
</code>
I know this is simple, but I have tried other snippets of code before, however they failed. This oddly enough is the cleanest.
Yet again, I appreciate anyone who will take out their time to help me.
-Brandon
First off, anyone that can help me is a saint and I love you more than anything in the world.
Here is what I am trying to do.
I have a master excel document that will contain dynamic information (i.e will be updated often) I am trying to program this spreadsheet to cycle through each row of data and export that row to its own word document.
for example:
******
row1 (export) word1
row2 (export) word2
loop this until it hits a empty row and then kill the program
******
Here is what I have so far, however I am having trouble 1) exporting to word and 2) automating it.
<code>
Rows("1:1").Select
ChDir "C:\Documents and Settings\Brandon\Desktop"
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\Brandon\Desktop\Project1\2\test\test1.xls", FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
</code>
I know this is simple, but I have tried other snippets of code before, however they failed. This oddly enough is the cleanest.
Yet again, I appreciate anyone who will take out their time to help me.
-Brandon