Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have added some code to my access form, which exports to excel in several
sheets. The code is: .ActiveWindow.SelectedSheets.Delete this deletes the current sheet (which i have to do, as i copy data from it, and this makes the sheet redundant). However, the problem is the delete function brings up a dialog box asking you to confirm the deletion, which i want to bypass/automatically select ok. I ran a macro to get this code, so i guessed it would show all the workings (which it doesn't) Since this is not a normal dialog box, I could not get the VBbuttonok etc to work. How can I autoselect ok on the messagebox? Or is there a better way of deleting a worksheet? -- Message posted via http://www.officekb.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete a Column when in a Macro-Worksheet Event? | Excel Worksheet Functions | |||
How to delete a macro froma worksheet | Excel Programming | |||
copy 40 tabs into 1 tab automatcially?? | Excel Worksheet Functions | |||
Delete VBA code in worksheet through a macro | Excel Programming | |||
Delete VBA code in worksheet through a macro | Excel Programming |