The document outlines a VBA function and subroutine for displaying results in an Excel worksheet. It creates a 'Results' worksheet, populates it with nodal displacements and support reactions, and formats the data as tables. The code includes error handling for existing worksheets and organizes the output for clarity.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
3 views1 page
GRASP Python (10)
The document outlines a VBA function and subroutine for displaying results in an Excel worksheet. It creates a 'Results' worksheet, populates it with nodal displacements and support reactions, and formats the data as tables. The code includes error handling for existing worksheets and organizes the output for clarity.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
End If
' Return empty array to indicate failure
ReDim result(0) SolveDirect = result End Function
Sub DisplayResults(displacements() As Double, reactions() As Double,
elementForces() As Variant) ' Enhanced results display with multiple worksheets
' Create results worksheet
Dim wsResults As Worksheet On Error Resume Next Set wsResults = ThisWorkbook.Worksheets("Results") If Not wsResults Is Nothing Then Application.DisplayAlerts = False wsResults.Delete Application.DisplayAlerts = True End If On Error GoTo 0
Set wsResults = ThisWorkbook.Worksheets.Add(After:=ThisWorkbook.Worksheets(ThisWorkbook.Works heets.Count)) wsResults.Name = "Results"