Hi,(adsbygoogle = window.adsbygoogle || []).push({});

I'm currently working on a project that requires me to convert a Fortran code into excel vba.

There are some problems that I've stumbled into, so itll be great if someone could help out.

one of it would be on how to convert a COMMON statement in Fortran to Excel VBA ( as in how would the coding be??) the coding is below:

IMPLICIT REAL*8 (A-H,O-Z)

REAL*8 C2X,C3X

REAL*8 KR1E,KR2E,M,N

COMMON /INFSVE/ PRES,TRES,SALN,FOINIT,DENC,ZC,YKSVE,SCSVE

COMMON /FLSH/ S(2),C(3,2),XK(3)

COMMON /PROP/

+ SWC(6), VWC(6), CWC(6), SLW(4), SFC(4),

+ TVC(5), PVC(6), VCO2(5,6),

+ TDC(5), PDC(7), DCO2(5,7),

+ TSC(5), PSC(6), SCO2(5,6),

+ TZC(7),PZC(19), ZCO2(7,19),

+ TBW(9),BWC(15), RHO(9,15)

Is the SWC and the others after it arrays??

hope there's someone to help me out here. thanks

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Fortran code conversion into Excel VBA

Loading...

Similar Threads for Fortran code conversion | Date |
---|---|

Python Porting Python Code to Fortran for Parallel Computing | Dec 15, 2017 |

Fortran Input/Output error with error code -5 | Dec 16, 2015 |

Fortran Large/Infinite results | Jun 18, 2015 |

Fortran Please, Help with Data Reading in Fortran | May 30, 2015 |

**Physics Forums - The Fusion of Science and Community**