T
Terry Detrie
I am working on a template for monthly reports; the top part of the
form is a table full of the usual parameters (Project Number, Leader,
Sponsor, Month, Hours Worked, etc). Management wants to be able to
grab all the values and dump the data into an Excel file.
My approach was to create bookmarks throughout the table. Say for
instance I had two cells. First one is Project Leader, and the next
one is Terry Detrie. I'd set bookmark for the first cell, then tab
over to the next and grab the selected text. I'd cycle through all
the bookmarks this way, save the text to an array, and then write the
array to a text file. This text file could then be read by Excel
(also via macro). If anyone thinks my approach is useful, I will post
the code.
Is there a more direct way to transfer data from Word to Excel?
If 'yes', which is easier, running the code from Excel (opening and
reading Word document) or from Word (opening and writing Excel
spreadsheet)?
Terry
form is a table full of the usual parameters (Project Number, Leader,
Sponsor, Month, Hours Worked, etc). Management wants to be able to
grab all the values and dump the data into an Excel file.
My approach was to create bookmarks throughout the table. Say for
instance I had two cells. First one is Project Leader, and the next
one is Terry Detrie. I'd set bookmark for the first cell, then tab
over to the next and grab the selected text. I'd cycle through all
the bookmarks this way, save the text to an array, and then write the
array to a text file. This text file could then be read by Excel
(also via macro). If anyone thinks my approach is useful, I will post
the code.
Is there a more direct way to transfer data from Word to Excel?
If 'yes', which is easier, running the code from Excel (opening and
reading Word document) or from Word (opening and writing Excel
spreadsheet)?
Terry