Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Feb 28, 10:19 am, Tom Ogilvy
wrote: Now I am commenting on/supplementing your post. That is true if he had returned to menu in his code, then turned screenupdating on, but he didn't. So to utilize your suggestion, he should. -- Regards, Tom Ogilvy "Susan" wrote: at the beginning of your macro, add application.screenupdating=false and near the bottom add application.screenupdating=true then the screen won't jump around following your macro. will just stay on the Menu sheet. hth! susan On Feb 28, 9:07 am, "excelnut1954" wrote: I have a sheet named Menu that contains command buttons the user will choose from. I would like for the view to stay on Menu as the macro executes. Is there a way to keep the focus on this sheet? Here's an example of one of the button commands. Private Sub CommandButton1_Click() 'Find Record via PO# - enter # and choose from Current or Deleted sheet. 'Unhides columns for Search Application.Goto Reference:="_2nd_PO_PL" ActiveCell.Columns("A:N").EntireColumn.Select Selection.EntireColumn.Hidden = False ' user will enter PO# to search for UserForm12.Show End Sub Thanks, J.O.- Hide quoted text - - Show quoted text - Works great! So simple, yet so effective. I appreaciate the help, no matter who it comes from. Thanks Susan & Tom J.O. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA macro runs fine, but freezes if I try to do ANYTHING else whileit runs | Setting up and Configuration of Excel | |||
Why macro runs on the same sheet? | Excel Discussion (Misc queries) | |||
One macro runs then it auto runs another macro | Excel Discussion (Misc queries) | |||
Why is Sheet deleted when Macro runs... | Excel Programming | |||
Macro to View Protected Sheet | Excel Programming |