Results 1 to 5 of 5

Sending a variable from VB to Excell

Threaded View

  1. #1
    Registered User
    Join Date
    04-13-2009
    Location
    USA, America
    MS-Off Ver
    Excel 2003
    Posts
    2

    Sending a variable from VB to Excell

    Hello,

    I currently have the task of sending variables to excel cells in a spreadsheet after they are calculated in a function. I don't know much about VB and am converting from a Java program to a Visual Basic Module

    Here is an example of the original JAVA code:

    peakTemp = 2 * theta_eff - tamb
        setEccentricityRatio(ecc);
        setAttitudeAngle(att);
        setSommerfeldNo(som);
        setPressureAverage(pressure_average);
        setDimensionlessOilFlow(dof);
        setDimensionlessFrictionCoef(dfc);
        setFilmThickness(clearance_eff);
        setPowerloss(loss);
        setOilFlow(flowTotal );
        setTheta(theta_eff) ;
        setPeakTemperature(peakTemp);
        setDeltaTheta(deltaTheta);
    So, the VB functions don't call any variables, but need to send variables like Theta_eff to the Excel Cell Theta. Can somebody post an example of how this would be done for one of these variables?

    If this is already discussed somewhere, I apologize.

    Thanks!

    B
    Last edited by VBA Noob; 04-13-2009 at 02:27 PM. Reason: Added code tags as per forum rules

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1