Follow this procedure...
1. Open word
2. ALT+F11, the Visual Basic Editor will appear
3. CTRL+R, to show the project explorer
4. Double Click Project(Document1), Microsoft Word Objects then the "ThisDocument"
5. Paste the Code below
Sub macro()
Application.CommandBars("Menu...
This returns the focus on the textbox if its empty.
Private Sub CommandButton1_Click()
'my macro
If TextBox1.Text = "" Then
MsgBox "textbox is empty"
TextBox1.SetFocus
'my macro
End If
End Sub
Hi!!! try below....
Click ALT+F11, next click Tools menu and point to the VBAProject Properties. Click the Protection tab, check the lock project for viewing and input password.
Close the file and re-open it again, even your code have error they will not able to debug your code.
On the view Menu, click Slide sorter. Place the mouse at the end of last slide, then click SHIFT + First slide. Now all of the slide is selected. Copy and paste in the new presentation. Be sure to click the view menu, slide sorter in the new presentation before you paste the slide, then save...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.