An ex-colleague of me made the external pressure calc in Excel without VBA.
In gross lines, here's how it works. Please notice the formatting defines the visual representation in excel and the worksheets youll have have to make.
[ol 1]
[li]Creat a new Excel workbook. Make 1 sheet your calculation results sheet, where all inputs and results are defined, incl. material and temperature. The other sheet(s) are used for determing G, A and B.[/li]
[li]Make an input field for calculating D/t and L/D. Worst case, L/D is greater than 50[/li]
[li]Copy paste the table that belongs with figure G of II-D (table G) into excel, just by selecting the data in pdf, crtl+C | crtl + V. Excel has easy ways of re-organizing large amounts of data in row and columns in such a format you can easily work with that data (use the Data ribbon, and use "Text to columns"). Make an array or table. Now, and this is where Im on the same page as Mike (Im not a skilled programmer either - if someone in your company is, get him to join you).[/li]
[li]Determine your lower and higher D/T value that comes back in table G. Do the interpolation to find A from table G (this sounds easy, but should be pretty straightforward in excel for an experienced excel guru - no VBA required).[/li]
[li]Copy value A back into your input/result sheet[/li]
[li]Just as you can make an input for table G in excel, you can also do this for e.g. table HA-2 (this is 316). Once you get the hang of it, its fairly easy to get all material tables into excel.[/li]
[li]Assuming you use 316, thus HA-2, copy the found value of A into this sheet, and let the sheet determine the value of B, in the same way as defined in step 4.[/li]
[li]Copy value B back into your input/result sheet[/li]
[li]Now, you need to do some programming in excel (fairly easy using IF and AND statements) to determine if you have to follow how you can calculate UG-28(c)(1) or (c)(2). From there on, you can determine Pa (or Pa1/Pa2)[/li]
[/ol]
The programming will require some background data to be available. Ive found it easy to have all stress values from II-D table 1A in excel. Using VLOOKUP and INDEX functions, you can easily determine stress allowables based on the given temperature input.
In your input/result sheet, you could use a dropdown for selecting your material. With a VLOOKUP, excel then can easily determine the corresponding stress allowable that is used in determining Pa/Pa1/Pa2.
Hope this helps. In the end, run some test calcs by hand to determine if your calcs and programming are OK.