Creating a Macro to shift data from word to excel

Brass Contributor

Hello,

 

Would anyone know how to assemble code to create a macro to shift data from word to excel. 

 

So I attached the purchase order word document, and PO log spreadsheet. The part of the purchase order that would need to be populated is the purchase order number, supplier, item number, part number, description, revision number, quantity, date required, and unit cost (extended cost is automatically calculated), this information will go from the word document, to the excel spreadsheet in the appropriate cells.

 

Again, all I need is information the purchase order document specified above, to be transferred to excel, by way of a button, or something more efficient. 

 

Thank you!

 

 

6 Replies
I don't have a direct answer to your request. Rather a question: is it necessary for some reason that the originating Purchase Order has to be in Word? There are Excel Forms that could serve the purpose also (I think).

It also would be helpful to know how many people are involved in this procedure: and whether they are part of your organization or are clients...

In general, on behalf of those who ARE able to write VBA code and the like, I think you'd be more apt to get good help if you describe the situation a bit more fully, so that your specific request can be seen in its larger context. This would also enable them to suggest alternative solutions.

@mathetes 

 

Thank you for the insight Mathetes. Unfortunately the purchase order is a controlled document that has always been in word format, and to change to excel would be difficult regulatory wise. The main people involved would be me: I do purchasing and inventory management. My supervisors: They handle the ad hoc supply chain management for our company. And our receiving department: who will receive in orders, and reconcile received amounts from ordered amounts. In that case I may just record a video showing exactly what I mean.

@Dexlee46 

 

The situation you describe (especially given the sample documents you've provided) tell me that anything like this in Word/Excel is way above my level of expertise with these tools.  There may be others here in this Forum who can help; but the scope of what you've described is well beyond most applications  suitable for Microsoft Office suite.

 

In fact, if I may speak frankly (as one who worked as Director of a major corporation's Hr and Payroll database) I think that what you have warrants a solution tailored for supply chain management. Word and Excel are wonderful programs, and they may have served you well when your company was smaller, but there are practical limits.

 

If I were you, I'd be recommending that you implement a Request for Proposal (or whatever procedure you all use) from major suppliers of supply chain software. Here are several links to get you started.

@mathetes 

 

We are currently undergoing a ERP implementation. I was just looking for quick fix, as the system will not be implemented fully until sometime next year.

 

Thank you for the input.

get doc sheet converted to excel, copy table from doc and paste into new sheet

@Dexlee46 if your doc contains bookmarks, you should be able to search for those and copy/paste with vba. Or something like this: https://stackoverflow.com/questions/3567441/extract-data-from-word-document-to-an-excel-spreadsheet