Sendkeys Page Down不起作用

问题描述 投票:0回答:2

我正在尝试使用VBA发送向下翻页的按键,但是我没有尝试过。

我尝试过;

Myscreen.SendKeys "{PGDN}"  
Myscreen.SendKeys ("{PGDN}")
Myscreen.SendKeys ("<PGDN>")
Myscreen.SendKeys "{PAGE DOWN}"
Myscreen.SendKeys ("{PAGE DOWN}")
Myscreen.SendKeys ("<PAGE DOWN>")
Myscreen.SendKeys "{PAGE DN}"
Myscreen.SendKeys ("{PAGE DN}")
Myscreen.SendKeys ("<PAGE DN>")
Myscreen.SendKeys "{Down}"
Myscreen.SendKeys ("{Down}")
Myscreen.SendKeys ("<Down>") - this was the only that did anything, but it moved the cursor down a line instead of paging down

我使用Myscreen.Sendkeys(“”)进行删除,但是由于某些原因,它无法用于分页。

任何人有任何想法吗?

excel vba sendkeys pagedown
2个回答
0
投票

{Page Down}的正确Syntax应该为


-1
投票

这是正确的语法Myscreen.SendKeys ("<rollup>")

© www.soinside.com 2019 - 2024. All rights reserved.