Declare Sub keybd_event Lib "user32" (Byval bVk As Byte, Byval bScan As Byte, Byval dwFlags As Long, Byval dwExtraInfo As Long)
Const KEYEVENTF_KEYDOWN = &H0
Const KEYEVENTF_KEYUP = &H2
Sub Initialize
'ctrl+P - открываем диалог печати
keybd_event VK_CONTROL, 0, KEYEVENTF_KEYDOWN, 0
keybd_event VK_P, 0, KEYEVENTF_KEYDOWN, 0
keybd_event VK_P, 0, KEYEVENTF_KEYUP, 0
keybd_event VK_CONTROL, 0, KEYEVENTF_KEYUP, 0
'shift+tab - переходим на закладки
keybd_event VK_SHIFT, 0, KEYEVENTF_KEYDOWN, 0
keybd_event VK_TAB, 0, KEYEVENTF_KEYDOWN, 0
keybd_event VK_TAB, 0, KEYEVENTF_KEYUP, 0
keybd_event VK_SHIFT, 0, KEYEVENTF_KEYUP, 0
'right - переходим на закладку параметров страницы
keybd_event VK_RIGHT, 0, KEYEVENTF_KEYDOWN, 0
keybd_event VK_RIGHT, 0, KEYEVENTF_KEYUP, 0
'alt+a - выбираем альбомную ориентацию
keybd_event VK_MENU, 0, KEYEVENTF_KEYDOWN, 0
keybd_event VK_A, 0, KEYEVENTF_KEYDOWN, 0
keybd_event VK_A, 0, KEYEVENTF_KEYUP, 0
keybd_event VK_MENU, 0, KEYEVENTF_KEYUP, 0
'enter - жмём ОК
keybd_event VK_RETURN, 0, KEYEVENTF_KEYDOWN, 0
keybd_event VK_RETURN, 0, KEYEVENTF_KEYUP, 0
End Sub