+ Reply to Thread
Results 1 to 3 of 3

Basic to VBA Excel 2007 Let statement

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    Washington, USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Basic to VBA Excel 2007 Let statement

    I am working with a VBA Excel 2007 code that someone in my office years ago converted from a GW-Basic program. I can get the program to run up to this statement. I have tried to transpose the formula to see if an alternative method might be acceptable with no success. I have broken the Let statement in two parts, and had the program to run, but I need the entire expression.

    I know Let is an old expression from Basic and is not used much in VBA any more. Any suggestions would be appreciated.

    Please Login or Register  to view this content.
    Last edited by Cutter; 08-01-2012 at 02:38 PM. Reason: Added code tags

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Basic to VBA Excel 2007 Let statement

    Let is accepted by VBA, that's not a problem.

    The problem in that is that C(M) is an array, not a Double (see two lines above the trouble line), but division requires a numeric data type.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Basic to VBA Excel 2007 Let statement

    @ JayFinance

    Welcome to the forum.

    Please notice that code tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at top of the page and read Rule #3.
    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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