Vb6 Legacy
Covers VB6-to-VB.NET migration, COM interop, and legacy pattern modernization with side-by-side code examples.
- CCM score
- 52 of 100
- skills.sh installs
- 356
- GitHub stars
- 79
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers Variant-to-typed conversions, default properties, ByRef defaults, On Error to Try-Catch, and fixed-length strings
- Includes early-bound and late-bound Excel automation, COM-visible .NET class and interface attributes, and
regasmandtlbexpregistration - Enforces explicit COM object release in
Finallyblocks withMarshal.ReleaseComObjectto prevent leaked Excel processes - Designed for developers maintaining VB6 code or planning an incremental migration with a COM interop wrapper
Install
$ npx -y skills add bobmatnyc/claude-mpm-skills --skill vb6-legacy -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
VB6 Legacy and COM Interop
Patterns for maintaining VB6 code and strategies for migrating to VB.NET with COM interop.
VB6 to VB.NET Migration
Key Differences
' VB6 - Variant types
Dim data As Variant
data = 123
data = "Hello"
' VB.NET - Strong typing with Option Strict On
Option Strict On
Dim data As Object ' Still avoid when possible
Dim number As Integer = 123
Dim text As String = "Hello"
' VB6 - Default properties
Text1.Text = "Hello"
Text1 = "Hello" ' Uses default Text property
' VB.NET - Explicit properties required
TextBox1.Text = "Hello" ' Must be explicit
' VB6 - ByRef default
Sub ProcessData(data As String) ' ByRef by default
' VB.NET - ByVal default
Sub ProcessData(data As String) ' ByVal by default
Sub ProcessData(ByRef data As String) ' Explicit ByRef
' VB6 - On Error
On Error Resume Next
On Error GoTo ErrorHandler
' VB.NET - Try-Catch
Try
' Code
Catch ex As Exception
' Handle error
End Try
Common Migration Issues
' VB6 - Fixed-length strings
Dim name As String * 50
' VB.NET - Use regular string and PadRight
Dim name As String = "John".PadRight(50)
' VB6 - Currency type
Dim amount As Currency
Details
- Repository
- github.com/bobmatnyc/claude-mpm-skills
- Category
- .NET & C#
- First seen
- Jun 3, 2026
Questions
What does the vb6-legacy skill help with?
The vb6-legacy skill covers classic VB6 patterns, COM interop, and strategies for migrating VB6 code to VB.NET. It gives examples of converting VB6 idioms such as Variant types, On Error handling, and Collection objects into modern VB.NET equivalents.
How do I install the vb6-legacy skill?
Run npx -y skills add bobmatnyc/claude-mpm-skills --skill vb6-legacy -y in your project. After that, the agent can apply VB6 migration and COM interop guidance to your Visual Basic code.
Which skills are in the same category as vb6-legacy?
vb6-legacy sits in the .NET and C# category on Claude Marketplaces, alongside dotnet-backend-patterns, dotnet-best-practices, nuget-manager and microsoft-code-reference. It focuses on the legacy VB6 side, covering migration and COM interop rather than modern .NET backend design.
Does vb6-legacy show how to use COM objects like Excel from VB.NET?
Yes, the skill includes early binding with a type library reference and late binding through reflection, both shown with Excel automation. It also covers releasing COM objects with Marshal.ReleaseComObject to avoid leaving Excel processes in memory.
Can vb6-legacy help me expose a VB.NET class to COM clients?
Yes, the skill shows how to build COM-visible .NET components using ComVisible, Guid, ClassInterface and ProgId attributes. It also includes the regasm and tlbexp commands for registering the assembly and generating a type library.
More from bobmatnyc/claude-mpm-skills
All 154- Vercel Functions Runtime356
- Vercel Overview356
- Condition Based Waiting355
- Flexlayout React355
- Digitalocean Agentic Cloud354
- Jest Typescript354
- Terraform351
- Vercel Ai351
- Artifacts Builder350
- Validated Handler350
- Bad Example Skill347
- Emergency Release Workflow346
- Digitalocean Teams344
- Vector Search Workflows342
- Vercel Storage Data342
- Dispatching Parallel Agents341
- Example Framework Skill341
- Prisma Orm341
- Vercel Teams Billing338
- Spring Boot336
- Requesting Code Review333
- Rust Desktop Applications263
- Anthropic Sdk254
- Tauri Event System203
Similar to Vb6 Legacy
More .NET & C#vb-coreSkillbobmatnyc/claude-mpm-skills371 installsCore VB.NET patterns covering Option Strict, nullable types, LINQ, and async/await for type-safe modern code.
ExcelMCP servernegokaz1K starsReads and writes Excel workbooks: sheets, cell values, formulas, tables, and formatting.
MCP Server for ExcelMCP serversbroenne970 starsAutomates the desktop Excel app through its COM API for Power Query, DAX, VBA, charts, and tables.
xlsxSkillbobmatnyc/claude-mpm-skills615 installsPython and JavaScript guide for reading, writing, formatting, and transforming Excel workbooks programmatically.
sap-abapSkillsecondsky/sap-skills1.6K installsComprehensive ABAP development reference covering classic and ABAP Cloud patterns across supported releases.
excel-automationSkillclaude-office-skills/skills16.5K installsLive Excel automation via xlwings that controls running instances, runs VBA, and updates dashboards in real time.