VBA使用InputBox定义工作表名称并将其存储在变量中

时间:2018-10-27 07:12:17

标签: excel vba excel-vba

我现在正在搜索小时,但没有解决方案,我试图从InputBox定义一个变量,以将其用作工作表名称和A1范围内的复制值。

工作表名称应为Inputbox中的名称。

Dim wss As String
wss = InputBox("Sheet name")
Sheets("EBS Posting template").Range("A1") = Wss.Range("A1")

这也不起作用

Sheets("EBS Posting template").Range("A1") = Sheets(Wss).Range("A1")

1 个答案:

答案 0 :(得分:0)

这对我有用。我认为问题在于您错过了以下范围的

.css("scrollTop", $(href).offset().top -menubarHeight);
相关问题