Excel Visual Basic Application VBA' For Beam Problems Calculation
Excel Visual Basic Application VBA' For Beam Problems Calculation
Vol. 2 Special Issue (1) - March 2017 ISSN: 1858 -7658 (Print)
Abstract
VBA “Visual Basic Application” program run on EXCEL was written to solve the simple beam
problem which was divided into 100 segment to find shear, moment, slope and deflection at
each point. User inputs information into program: span load, span length, material properties,
concrete and steel strength. VBA program automatically calculates information and shows
results in a table and graphs.
159
Red sea university Journal of Basic and Applied Science ISSN: 1858 -7690 (Online)
Vol. 2 Special Issue (1) - March 2017 ISSN: 1858 -7658 (Print)
engineering. A special issue of the the Visual Basic Editor. To access the
International Journal of Engineering Visual Basic Editor in Excel 2013,
Education published in 2004 was we will go to file, options,customize
dedicated fully to different forms ribbon and then select developer
of application of spreadsheets after that we click Visual Basic
in engineering education. A Editor from the submenu. The Visual
comprehensive and instructive Basic Editor screen usually contains
review was done by S.A. Oke of three important windows: the Project
the University of Lagos in 2004 [3]. Explorer window, the Properties
He credits electrical engineers for window and the Code window,
pioneering the use of spreadsheets as shown in Figure 1.a,1.b,and
in engineering education. Examples 1.c rispectivly. The Code window
of researchers and practitioners in displays the active module sheet;
electromagnetism, logic networks, each module sheet can contain one
antenna design, microprocessor or several VBA procedures. To insert
systems, Fourier series for a module sheet, choose Module
harmonics analysis, etc, are given. from the Insert menu. A folder icon
In general engineering, numerical labeled Modules will be inserted; if
analysis, differentiation, integration you click on this icon, the module
and solution of partial differential sheet Module1 will be displayed.
equations are highlighted. To insert a module sheet, choose
In addition to the features and Module from the Insert menu. A
functions of Excel, its programming folder icon labeled Modules will be
capabilities, called visual basic for inserted; if you click on this icon,
applications (VBA) are very powerful the module sheet Module1 will be
and can be used to solve complex displayed. The Properties window
civil engineering problems [4]. To will also displayed.
create VBA code, or to examine
existing code, you will need to use
160
Red sea university Journal of Basic and Applied Science ISSN: 1858 -7690 (Online)
Vol. 2 Special Issue (1) - March 2017 ISSN: 1858 -7658 (Print)
161
Red sea university Journal of Basic and Applied Science ISSN: 1858 -7690 (Online)
Vol. 2 Special Issue (1) - March 2017 ISSN: 1858 -7658 (Print)
162
Red sea university Journal of Basic and Applied Science ISSN: 1858 -7690 (Online)
Vol. 2 Special Issue (1) - March 2017 ISSN: 1858 -7658 (Print)
164
Red sea university Journal of Basic and Applied Science ISSN: 1858 -7690 (Online)
Vol. 2 Special Issue (1) - March 2017 ISSN: 1858 -7658 (Print)
The program also show the result in graphical state as shown in figures
6.a,6.b.6.c,6.d and 6.e
165
Red sea university Journal of Basic and Applied Science ISSN: 1858 -7690 (Online)
Vol. 2 Special Issue (1) - March 2017 ISSN: 1858 -7658 (Print)
166
Red sea university Journal of Basic and Applied Science ISSN: 1858 -7690 (Online)
Vol. 2 Special Issue (1) - March 2017 ISSN: 1858 -7658 (Print)
167
Red sea university Journal of Basic and Applied Science ISSN: 1858 -7690 (Online)
Vol. 2 Special Issue (1) - March 2017 ISSN: 1858 -7658 (Print)
References
[1] Krudtong,S: Moaveni, S (2015)Teaching Tool: Finite Element Analysis of 2D Truss
Problem by VBA Program IJC, Vol.23 No.3 , pp. 89-91 90
[2]Bloch, S.C., EXCEL for Engineers and Scientists. John Wiley & Sons, Inc. (2003).
[3]Oke, S.A., Spreadsheet applications in engineering education: a review. Inter. J. of
Engng. Educ., 20, 6, 893-901(2004).
[4] E. Zaneldin, and B. El-Ariss, “Using Spreadsheets and VBA for Teaching Civil
Engineering Concepts,” J. Educat., Informatics and Cybernetics, Vol. 2, No. 1, 2011,
pp. 28-36.
[5] E. Joseph Billo, Excel for Scientists and Engineers Numerical Methods, John Wiley &
Sons,
2007.
[6] W.H.Mosley, J.H.Bungey. Reinforced concrete design, fourth edition , MACMILLAN
EDUCATION LTD,1990
168