Beyond the Mainframe: Planning a Governed VBA-to-Python Modernization
A decision guide for application owners and business teams
A smaller application deserves the same modernization discipline as a core platform when the business depends on its outputs. For teams evaluating VBA applications, the starting question should not be “Can we translate this code into Python?” It should be “Do we understand what this application does, what depends on it and how we will prove that its replacement works?”
Sapient Slingshot includes a VBA to Python Modernization Agent for automated VBA-to-Python application modernization. That capability sits within a broader enterprise AI software development platform supporting discovery, specification generation, design, code generation, testing and governed delivery.
The agent provides a concrete starting point—not a promise that every workbook, macro or external integration can be converted automatically. Suitability and scope should be assessed against the application’s actual inputs, dependencies, workflows and business requirements.
Use the following guide to structure that assessment, establish review gates and decide what evidence is needed before moving forward.
1. Inventory the application—not just its code
Begin by defining the boundary of the application you intend to modernize. Treat the workbook or VBA codebase as the starting point for discovery, rather than assuming it represents the entire business process.
Build an inventory around five questions:
- What enters the application? Identify input files, user-entered data, reference information and upstream systems. Record who supplies each input and what makes it valid.
- What executes? Identify the VBA routines in scope, how users initiate them and the sequence of activities required to complete the process.
- What does execution depend on? Investigate linked workbooks, external connections, shared locations, supporting applications and manual steps. Mark dependencies that remain unverified.
- What leaves the application? List reports, calculated results, exported files and downstream handoffs. Identify who uses each output and for what decision or activity.
- Who understands and supports it? Name the business owner, technical owner, users and subject matter experts who can explain exceptions and validate results.
Slingshot’s broader modernization approach maps application logic, data, dependencies and workflows before transformation. Its enterprise context graph maintains a living map of that context across the software lifecycle.
For a VBA assessment, use this principle to separate what is known from what still requires investigation. Do not treat an unexamined external connection as an automatically convertible component.
Review gate: Agree the application boundary, identify unresolved dependencies and assign an owner to each discovery gap before approving the build scope.
2. Extract embedded rules into reviewable specifications
Code conversion alone does not establish business understanding. Before generating the replacement, make the rules explicit enough for business and engineering teams to review together.
Slingshot uses a specification-led approach: it extracts business rules and system behavior, creates structured specifications and uses those specifications to guide downstream design, code and tests. Human reviewers validate the outputs at critical gates.
Apply that approach to the selected VBA scope by organizing each rule around:
- The input or condition that triggers it
- The calculation, decision or transformation performed
- The resulting output or exception
- The relationship to the original source or observed behavior
- A testable scenario and named reviewer
Ask reviewers to distinguish documented intent from observed behavior. If an expert expects one result but the original application produces another, record the discrepancy rather than resolving it silently during implementation.
The specification should become the agreed source of truth—not simply a description of generated Python code. Keep unresolved interpretations visible and link approved rules to implementation and test assets.
Review gate: Business reviewers confirm the meaning of critical rules; engineering reviewers confirm that the specifications are sufficiently precise to implement and test.
3. Decide what to preserve—and what to change deliberately
Preserving business logic does not require treating every existing behavior as a permanent requirement. It does require making changes explicit.
For each behavior in scope, choose a disposition:
- Preserve: Carry forward the existing rule or output requirement and validate equivalence.
- Change: Define the intended replacement behavior, its business rationale and the acceptance criteria that authorize the difference.
- Retire: Confirm that the behavior is no longer needed and obtain approval from affected owners.
- Investigate: Defer the decision until the team has sufficient evidence.
This prevents two different objectives—reproducing current behavior and improving it—from becoming indistinguishable during testing.
Also decide how much of the surrounding workflow belongs in the first release. A bounded calculation may be suitable for an initial evaluation while its wider user interactions or integrations require separate design and engineering assessment.
Publicis Sapient combines Slingshot automation with experts who guide architecture, delivery and governance. For application owners, that means retaining clear accountability for scope, business intent and readiness rather than delegating those decisions to generated code.
Review gate: Approve the preservation and change decisions before treating the specification as the implementation baseline.
Assessment worksheet: Is this application ready for evaluation?
Complete one worksheet per candidate application. Record evidence and unresolved questions—not just a readiness score.
Assessment area | Questions to answer | Evidence or decision to record
Business criticality
Which business activity depends on this application? What happens if its output is incorrect or unavailable?
Criticality, affected users, operational impact and risk reviewer
Ownership
Who owns the business outcome, technical support and release decision? Who will maintain the Python application?
Named owners, reviewers and support responsibilities
Documentation
Are source code, operating instructions and rule descriptions available? Where do they conflict with observed behavior?
Available artifacts, knowledge gaps and subject matter experts
Inputs
Which datasets, files and manual entries are required? Can representative inputs be assembled for testing?
Input inventory, providers and agreed test datasets
Dependencies
Which applications, workbooks, connections and manual handoffs are involved?
Dependency map, responsible owners and unverified components
Behavior decisions
Which rules must remain unchanged? Which changes or retirements are authorized?
Approved disposition for each in-scope behavior
Acceptance criteria
What outputs must match? How will approved differences be assessed? Who accepts the results?
Expected results, comparison rules, justified tolerances where applicable and sign-off owner
Release and recovery
Can the team compare old and new execution before cutover? How will service be restored if needed?
Validation plan, progressive cutover approach and rollback responsibilities
Proceed to a bounded evaluation when ownership, scope and test evidence are clear enough to assess feasibility. Prioritize discovery when critical rules or dependencies remain uncertain. Defer transformation when the team cannot yet define who will accept the replacement or how correctness will be demonstrated.
4. Validate Python outputs against the original application
Validation should be planned before implementation, not added after code generation.
Slingshot supports test generation, parity validation and reconciliation as part of its broader modernization workflow. Teams can also use dual-run approaches, progressive cutover and rollback planning to reduce disruption risk.
For the selected VBA-to-Python scope:
- Establish the baseline. Identify the original application version, agreed inputs and expected outputs used for comparison.
- Build test scenarios from approved rules. Include ordinary processing, business exceptions and the conditions reviewers identify as critical.
- Compare equivalent execution. Run the original application and Python implementation using agreed inputs and reconcile their outputs.
- Investigate every unexplained difference. Determine whether it reflects an implementation defect, an incomplete specification or an approved behavior change.
- Retain release evidence. Connect results to specifications, tests and acceptance decisions so reviewers can understand what was validated.
A successful execution is not sufficient evidence of business correctness. Release approval should depend on the agreed acceptance criteria and resolution of discrepancies—not simply on whether the generated code runs.
Illustrative planning scenarios
The following examples are hypothetical planning situations, not client engagements or demonstrated conversion outcomes.
A bounded reporting calculation
A business team proposes modernizing a VBA calculation with identifiable inputs and outputs. Its owner can explain the rules and provide comparison datasets. A sensible evaluation could focus on that calculation first, with approved specifications and output reconciliation defining success. The assessment would still need to confirm the surrounding workflow and dependencies.
A workbook with unresolved external handoffs
An application produces a business-critical output, but its external connections and manual adjustments are not fully understood. Rather than promising end-to-end conversion, begin with dependency mapping and rule extraction. Consider a narrower transformation only after owners can explain the handoffs and define how they will be tested.
A process with disputed behavior
Reviewers disagree about whether an existing result is correct. Pause the affected rule’s implementation decision. Document current behavior, agree the intended outcome and approve any change separately from parity requirements. Python should implement an authorized specification, not conceal an unresolved business decision.
Start with evidence, then choose the modernization path
The right first outcome is not necessarily a converted workbook. It may be an agreed application boundary, a verified rule set or a clear decision about which components require further engineering.
With its VBA to Python Modernization Agent, specification-led platform and human-governed delivery approach, Slingshot gives enterprises a capability to evaluate against those needs.
Connect with Publicis Sapient to assess a focused VBA application scope, evaluate Slingshot in your environment and define the evidence required to modernize with confidence.