Tag: mac office

VBA:粘贴停止工作(突然)在特定的macros

我是一个非常新的,自学成才的程序员,所以请记住你的回应。 我已经广泛search这个和其他论坛,似乎无法find类似的问题。 下面的代码已经工作了几个星期,并没有改变。 (我的macros包含了更多的variables和代码,但是我知道这些碎片是可以工作的,所以为了清楚起见,我把它们留了下来)。 从我可以告诉PasteSpecialfunction是特别不起作用。 Dim StimSheet As String ActiveCell.Rows("1:290").EntireRow.Select Selection.Copy 'Copies the data for the current stimulus StimSheet = Application.InputBox("Enter the name of the stimulus") 'asks name of the stimulus Sheets.Add After:=Worksheets(Worksheets.Count) ActiveSheet.Name = StimSheet 'adds new sheet at the end and names whatever you input as stimulus name Sheets(StimSheet).Select Selection.PasteSpecial Paste:=xlPasteValues 'pastes data […]