Skip to content

Commit 9d02003

Browse files
committed
Display VBE
1 parent c73b29a commit 9d02003

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/Build-VBA.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,15 @@ try {
334334
Write-Host "🟡 Warning: Could not execute macro ${macroName}: $($_.Exception.Message)"
335335
}
336336

337+
338+
# Display the VBE to activate the Rubberduck COM add-in
339+
$officeApp.CommandBars.ExecuteMso("VisualBasic")
340+
341+
# Wait for a moment to ensure the VBE is fully loaded
342+
Start-Sleep -Seconds 2
343+
Take-Screenshot -OutputPath "${screenshotDir}Screenshot_VBE_${officeAppName}_{{timestamp}}.png"
344+
Start-Sleep -Seconds 3
345+
337346
. "$scriptPath/Tests-Rubberduck-VBA.ps1"
338347

339348
# Now perform all tests using Rubberduck

0 commit comments

Comments
 (0)