Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to make a program that I have created as user-friendly as
possible. During the program, I delete 2 worksheets to leave only 1 worksheet. I tried using a SendKeys statement to click through the confirmation pop-up message, but I think that I may be placing the statement in the wrong area. Here is the statement I used: Application.SendKeys ("{Enter}") Where should I place this in the program, or is there a way to delete sheets without a pop-up message displaying? Thx |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Don't use SendKeys. Instead, turn off DisplayAlerts. E.g.,
Application.DisplayAlerts = False ' delete the sheet Application.DisplayAlerts = True -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "ajvasel" wrote in message ... I am trying to make a program that I have created as user-friendly as possible. During the program, I delete 2 worksheets to leave only 1 worksheet. I tried using a SendKeys statement to click through the confirmation pop-up message, but I think that I may be placing the statement in the wrong area. Here is the statement I used: Application.SendKeys ("{Enter}") Where should I place this in the program, or is there a way to delete sheets without a pop-up message displaying? Thx |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Chip - 'preciate the help
"Chip Pearson" wrote: Don't use SendKeys. Instead, turn off DisplayAlerts. E.g., Application.DisplayAlerts = False ' delete the sheet Application.DisplayAlerts = True -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "ajvasel" wrote in message ... I am trying to make a program that I have created as user-friendly as possible. During the program, I delete 2 worksheets to leave only 1 worksheet. I tried using a SendKeys statement to click through the confirmation pop-up message, but I think that I may be placing the statement in the wrong area. Here is the statement I used: Application.SendKeys ("{Enter}") Where should I place this in the program, or is there a way to delete sheets without a pop-up message displaying? Thx |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Positioning | Excel Programming | |||
SendKeys in VBA | Excel Programming | |||
Sendkeys | Excel Programming | |||
= positioning | Excel Programming | |||
Sendkeys | Excel Programming |