+ Reply to Thread
Results 1 to 2 of 2

Entering Sum and Range Formula in Macro

  1. #1
    Registered User
    Join Date
    12-01-2009
    Location
    NorCal, CA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Entering Sum and Range Formula in Macro

    Hi,

    I have some code that I need to figure out the sum of a dynamic range until it reaches a blank cell. Right now, I have the following:

    Please Login or Register  to view this content.
    However, I don't want the answer to be displayed in an message box. Instead, I would like to answer to appear in a particular cell in the worksheet that I named "sum_inputs"

    I have the following code so far, but I'm not sure how to code in the formula on the 4th line (it is giving me a "compile error: end of statement expected" error):

    Please Login or Register  to view this content.
    Thanks.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208

    Re: Entering Sum and Range Formula in Macro

    You were pretty close. Try this:

    Please Login or Register  to view this content.
    HTH,
    Jason

+ Reply to Thread

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