MS Word Macro Issue - vba

Word userform database, while open other word file and copy data and paste in to userform and clicks SUBMIT button then getting error message. To check I can send the file. please let me know how to attach.
Snapshot:

Related

Excel Macro - disabling "file now available for editing" msg

How do you disable the pop up message:
File now available for editing.
in Excel?
I couldnt do it in my python code so I am trying to see if I can do it within Excel macro. Do I apply the macro to the master copy, or the one I am opening up as read only?

Copying report fields in ms access report vba

I want to create button that copies fields in a report which comes from a form but I cant figure how to write the VBA behind button in VBA . I am sure its pretty simple but cant figure it out. I appreciate if you can help me.
To convert an Access 2007 form to a report, follow these steps:
Open the database containing the form.
Click the name of the form in the Navigation pane.
Click the Microsoft Office button.
Point to Save As and then click Save Object As.
Click in the Save "Form_Name" To text box and enter a name for your report.
Click the drop-down arrow in the As text box and select Report from the list, then click OK.
No VBA required.

VBA Macro to auto browse and open a file

I am writing a VBA macro to fill a web form with values from spreadsheet.
I have completed macro to fill all form fields except one to click on a button in form to Browse for files.
Below is the macro line to click the browse button.
IE.Document.getElementById("notification_picture").Click
I'm clueless on how to do the next steps i.e. to browse to a particular folder, select and open the file.
Any help is appreciated.
Man... particularly deal with IE is a pain...
You could use
Sendkeys "%S"
It will save it in Downloads folder and then you can move it, open or do whatever you want.
Many will say it is not good to use it because if the user change the focus while the macro is running it will not working, but it is the simplest way.

How can I make userform to work like inputbox?

I have Workbook named Test. And in The Test I have code that runs when the workbook is opened it shows me UserForm1 which asks me to login with username and password and it will hide applications so only the UserForm1 is seen. The problem is that you can open Excel again and open a new workbook, and there you can go to the VBA and see workbook Test's code and close or modify it.
If the login would be requested in the input box, you can not do the trick and circumvent the login part. Input Box allows you only click in the workbooks Input Box you can't press ALT + F11 and go to VBA code or if you try to open new Workbook and in there goto VBA code there wouldn't be the Test's code. How to do this, with the UserForm?
Thank you so much for all your help in advance!
If it helps I can copy the code to do this , but it's a little mess.
What you want to do is protect your project,  then auto execute your macro.
To protect you project do the following:
In your Project Viewer, right click your project then under the protection tab insert your password. You will then need to insert the password when you want to access your script for each instance you have the document open.

Excel macro runs Access macro issue

I have an Excel macro that imports files into an Access database. The Excel macro uses a shell command to open Access and kick off a macro in the Access database. The Access macro runs an Access VBA function that runs several routines in Access. This works for me. I'm located in the US.
A UK user tries to run the Excel macro. Access opens but displays an error message. The Access database is located on the UK server.
I remoted in to the user's machine and opened the Access database. I then selected "macros" and pushed the "run macro" icon. A pop-up displayed and showed the macro name. You had to click "Ok" or "cancel". I've never seen this before and was wondering if this is the reason that the UK user gets the error message.
Any suggestions would be appreciated. thanks...........
Try going into the settings of his Access. If all fails, download and use this program called Express ClickYes. It automatically clicks yes when message boxes in Access pops up