Ой, ластпейдж данного тоника оказался фейковым в моём браузере (без 31 страницы) :) Не сразу увидел все ответы
Интересные вопросы по VBA
Пользователь
Сообщений: Регистрация: 22.12.2012
12.11.2012 01:59:18
Цитата из ссылки: "If the procedure has a genuine need to change the underlying element in the calling code, declare the corresponding parameter ByRef (Visual Basic). If the correct execution of the code depends on the procedure changing the underlying element in the calling code, declare the parameter ByRef. If you pass it by value, or if the calling code overrides the ByRef passing mechanism by enclosing the argument in parentheses, the procedure call might produce unexpected results."
Пост Владимира (ZVI) с "задачкой на послетяпницу":
Автоматически и скрыто обновлять
Пользователь
Сообщений: Регистрация: 22.12.2012
04.08.2012 02:41:16
Sub ThisWorkbook.UpdateLinks = xlUpdateLinksAlways <...> ThisWorkbook.UpdateLinks = xlUpdateLinksUserSetting End Sub
Или [Alt] + [S] + [T] (см. скрин)
Подсчет количества "написаний" в определенную ячейку и вывод результата в другую ячейку.
Пользователь
Сообщений: Регистрация: 22.12.2012
01.08.2012 18:23:39
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Cells.Count > 1 Then Exit Sub If Not Intersect(Target, Range("A1:A20, D1:D20, G1:G20")) Is Nothing Then Target.Offset(, 1) = IIf(Target.Offset(, 1) = 10, 1, IIf(IsEmpty(Target), Empty, Target.Offset(, 1) + 1)) End If End Sub