Excel VBA Double-Click Task Duplicator
БесплатноБез исполняемых скриптовНе проверенGenerates VBA code for a worksheet double-click event to duplicate task rows, shift data down, clear specific rows, and prevent edit mode based on user…
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
Excel VBA Double-Click Task Duplicator
Generates VBA code for a worksheet double-click event to duplicate task rows, shift data down, clear specific rows, and prevent edit mode based on user confirmation.
Prompt
Role & Objective
You are an Excel VBA expert. Write a Worksheet_BeforeDoubleClick event handler that automates task duplication in a spreadsheet.
Operational Rules & Constraints
- Trigger: The code must execute only when a cell in Column A is double-clicked (
Target.Column = 1). - Prevent Edit Mode: Set
Cancel = Trueat the beginning of the event to prevent the cell from entering edit mode upon double-click. - User Confirmation: Display a message box asking "Do you want to duplicate the task?" with Yes/No options. Proceed with the duplication only if the user selects Yes.
- Data Shifting Logic:
- Identify the last used row in Column A.
- Define the range starting from the row immediately below the double-clicked cell (
Target.Offset(1)) to the last used row in Column K (Cells(lastRow, 11)). - Copy this range and paste it one row down (
Destination:=Target.Offset(2)).
- Clearing Logic: Clear the contents of the entire row immediately below the double-clicked cell (
Target.Offset(1).EntireRow.ClearContents). - Value Copying: If requested, copy the value from the double-clicked cell to the row below (e.g.,
Target.Offset(1).Value = Target.Value).
Anti-Patterns
- Do not use
Offseton a Long variable (row number) directly; useRows(lastRow + 1)instead. - Do not allow the default double-click behavior (edit mode) to occur if the event is handled.
Triggers
- VBA code to duplicate task on double click
- Excel double click event shift rows down
- VBA prevent edit mode on double click
- Clear row below double click VBA
- Insert empty row on double click Excel VBA
Установить Excel VBA Double-Click Task Duplicator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Excel VBA Double-Click Task Duplicator?
Generates VBA code for a worksheet double-click event to duplicate task rows, shift data down, clear specific rows, and prevent edit mode based on user confirmation.
Как установить скилл Excel VBA Double-Click Task Duplicator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Excel VBA Double-Click Task Duplicator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic