Search VBA
xlide_search_modulesSearch every VBA module in an Excel, Word, PowerPoint, or Access file to find where a name is declared or used before editing, with regex and paging.
Instructions
Searches every module's source in an Office file and returns each match with its module, line number and the line itself. Use it to find where a name is declared or used before changing it. content_tokens maps returned module names to tokens for guarded xlide_edit_module calls without a separate read. Use offset and next_offset to page through broad searches; total_match_count counts all matches. Plain text by default; set is_regex for a Python regular expression.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text or pattern to find. | |
| offset | No | Skip this many matches before a page. | |
| is_regex | No | Treat query as a regular expression. | |
| file_path | Yes | Absolute path to the Office file. | |
| match_case | No | Match case. Off by default, because VBA itself ignores case. | |
| max_results | No | Return at most this many matches. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||