Re: $$Excel-Macros$$ Macro to Import Word Tables to Excel from a folder

2016-02-02 Thread Samuellificationable
Hi, I know I'm a bit late to this so might not get answer but your code is exactly what I need to do but I get a runtime error on the line Dim appWord As Word.Application with the error "User-defined type not defined", do you have any idea why? Thanks so much for the code. On Wednesday,

Re: $$Excel-Macros$$ Macro to Import Word Tables to Excel from a folder

2016-02-02 Thread Samuellificationable
Hi, Thanks so much for the code but for me even though I select the folder (which currently contains two filled in Word forms), it only transfers the headings and "Please enter text" for each field even though text has been filled in. Could this be because I used plain text content controls?

Re: $$Excel-Macros$$ Macro to Import Word Tables to Excel from a folder

2014-03-31 Thread Michael Stokes
Ashish - You are a very talented star! The code works perfectly. Thank you so much. Michael On Sat, Mar 29, 2014 at 12:47 PM, ashish koul koul.ash...@gmail.com wrote: Sub test() Dim filenm As String, folderpath As String folderpath = C:\Documents and Settings\Ashish

Re: $$Excel-Macros$$ Macro to Import Word Tables to Excel from a folder

2014-03-29 Thread ashish koul
Sub test() Dim filenm As String, folderpath As String folderpath = C:\Documents and Settings\Ashish Koul\Desktop\sample files\ filenm = Dir(folderpath) While (filenm ) If InStr(filenm, .doc) 0 Then Call copytables(folderpath filenm) End If filenm = Dir Wend

Re: $$Excel-Macros$$ Macro to Import Word Tables to Excel from a folder

2014-03-27 Thread Michael Stokes
Ashish, The code works great!!! How could it be modified to create a new Excel document for each Word table discovered? Kindly advise. Thank you, Michael On Wednesday, October 2, 2013 1:09:44 AM UTC-4, ashish wrote: try this Sub import_word_table_to_excel() Application.DisplayAlerts =

Re: $$Excel-Macros$$ Macro to Import Word Tables to Excel from a folder

2013-10-05 Thread Nasir Khan
Dear Ashish, Any further help in this matter please. Regards Nasir Khan On Fri, Oct 4, 2013 at 12:38 AM, Nasir Khan nasirkhan.du...@gmail.comwrote: Yes I did. But as mentioned in my reply I need the code to 1) run on all the files in the given Path = Your code run a single folder at a

Re: $$Excel-Macros$$ Macro to Import Word Tables to Excel from a folder

2013-10-03 Thread Nasir Khan
Dear Ashish, Thanks for the code. My requirement is to import all the word tables from all the sub-folder in the given path. I got the following code from the net which obviously is not working. Sub DoItNow() Dim file Dim path As String ' the path to the folder ' make SURE you include the

Re: $$Excel-Macros$$ Macro to Import Word Tables to Excel from a folder

2013-10-03 Thread ashish koul
have you tried the code which i shared On Thu, Oct 3, 2013 at 1:34 PM, Nasir Khan nasirkhan.du...@gmail.comwrote: Dear Ashish, Thanks for the code. My requirement is to import all the word tables from all the sub-folder in the given path. I got the following code from the net which

Re: $$Excel-Macros$$ Macro to Import Word Tables to Excel from a folder

2013-10-03 Thread Nasir Khan
Yes I did. But as mentioned in my reply I need the code to 1) run on all the files in the given Path = Your code run a single folder at a time...there are several folder in the given path. 2) Each table should come on a separate sheet - Your code bring in the table one below other 3) The sheet

Re: $$Excel-Macros$$ Macro to Import Word Tables to Excel from a folder

2013-10-01 Thread ashish koul
try this Sub import_word_table_to_excel() Application.DisplayAlerts = False Application.ScreenUpdating = False Dim fldpath Dim fld, fil As Object Dim appWord As Word.Application Dim docWord As Word.Document Dim tableWord As Word.Table Dim sdoc As String ' use to choose the folder having word

$$Excel-Macros$$ Macro to Import Word Tables to Excel from a folder

2013-09-30 Thread Nasir Khan
Hello All, I have got lot of MS Word files in a folder eg. C:\Test\many folders here I wish to copy and paste the Tables from all the word documents in the above mentioned folder to excel. I found Macro1 (see below) which copy and paste the Table in Excel. My requirement is to get the tables