Question : Upload/Download form (.doc) from folders via Userform

Hi Experts,

This is what I would like to perform  in my excel userform1, here's the process flow for me to get the CM processed:

1. Click "Download CM Form" Button in userform1 to import the form. I've attached the sample form here. I'll save this form in the Folder (C:\ Master CM Form). Later part I'll save this folder in the other location - network folder. For that I need some flexibility to modify the folder link in the script.  

2. Update/Edit the form and "save as" the form into another folder (C:\ Archive CM Form). Once the form got updated, just click "upload userform" button. The form will automatically save the file by referring to the date and time of the activity based on CM Datasheet information. E.g. CM Form-28Dec-23:00.Doc. During this process, the hyperlink of this file is also being created in column-F "CMR Datasheet". We can retrieve this form by clicking the hyperlink.

However, we need flexibility in updating this form. The user can update/edit the form and creates the hyperlink for the task without any restriction. in other words, we can skip this process and come back later to update the form. If you think you have better idea to handle this, please don't hesitate to do so.

The user shouldn't save the edited/updated form on the Master form it self, massage box will pop as a reminder if they intended. They must click  "upload userform" button.

3. We can open the archive folder ((C:\ Archive CM Form) by clicking "Open CM Folder".

Hope Experts can help me to achieve this. I've attached the files for your perusal

Answer : Upload/Download form (.doc) from folders via Userform

I don't know for certain why you are getting either message.

I recommended that you treat the document as a template because that avoids the danger of overwriting the master document/template after changes have been made.

For troubleshooting reasons, try reverting to your original plan of opening the document.

So replace this line:

Set wdDoc = wdApp.Documents.Add(strTemplatesPath & "\Master-CM-Form.doc")

to

Set wdDoc = wdApp.Documents.Open(strTemplatesPath & "\Master-CM-Form.doc")
Random Solutions  
 
programming4us programming4us