![]() |
#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 |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
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 |
![]() |
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 |
![]() |
SaneMan | Word VBA | 5 | 04-01-2011 03:11 PM |