![]() |
|
#2
|
|||
|
|||
|
I'm assuming you must be displaying the form with .Show vbModeless.
In each command button event. Add Application.Activate Private Sub CommandButton1_Click() Selection.Cells(1).Shading.BackgroundPatternColor = wdColorAqua Application.Activate End Sub Private Sub CommandButton2_Click() Selection.Cells(1).Shading.BackgroundPatternColor = wdColorBlue Application.Activate End Sub Private Sub CommandButton3_Click() Selection.Cells(1).Shading.BackgroundPatternColor = wdColorBrightGreen Application.Activate End Sub |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Hyperlink object - change ctrl+click to click?
|
ld2x07 | Word | 5 | 10-10-2014 05:13 AM |
| Change focus from userForm back to word document to see results. | Hank Smith | Word VBA | 1 | 08-11-2014 05:00 AM |
Show userform without losing document focus? Or other method to get a graphic to pop?
|
AlexR | Word VBA | 7 | 03-31-2013 12:17 PM |
| Title: Why does focus fail to change to MyPic2.jpg (intermittently) after .addPictur | CatMan | PowerPoint | 6 | 05-10-2012 10:25 PM |
Setting focus to specific word document from UserForm
|
SaneMan | Word VBA | 5 | 04-01-2011 03:11 PM |