![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 2
|
Is the VBA of Excel have "SendKey" function?
I create a bottom, when I click it, it will save the file to HTML and XLS format. Because the file is already exist, so the system will prompt message about save it or not. I'd like to auto answer it "Yes". But I don't know how to do it. The code I use is ActiveWorkbook.SaveAs filename:=Target,fileformat=xlHTML |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Yes VBA has sendkeys
Press F1 while in the VBE editor and type in sendkeys to read all about it. You can't use send keys in this situation. Try application.displayalerts=false just before the saveas. Ivan |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|