+ Reply to Thread
Results 1 to 4 of 4

Need help with code location PL EASE

  1. #1
    PCOR
    Guest

    Need help with code location PL EASE

    Hi
    I have been reading many tutorials but am still lost when it come to where
    to place code.
    I see the code below will total all the number in col A from line 1 to
    200.Great...but where do I put this code and how to I call it
    Please be very specific..Thanks
    totVal = Application.WorksheetFunction.Sum(Worksheets(1).Range("a1:a200"))
    --
    Norton Professional 2004 says this email is clean...believe it



  2. #2
    R.VENKATARAMAN
    Guest

    Re: Need help with code location PL EASE

    try this statement

    range("a201")=totval
    ====================
    PCOR <[email protected]> wrote in message
    news:[email protected]...
    > Hi
    > I have been reading many tutorials but am still lost when it come to where
    > to place code.
    > I see the code below will total all the number in col A from line 1 to
    > 200.Great...but where do I put this code and how to I call it
    > Please be very specific..Thanks
    > totVal = Application.WorksheetFunction.Sum(Worksheets(1).Range("a1:a200"))
    > --
    > Norton Professional 2004 says this email is clean...believe it
    >
    >




  3. #3
    Steve
    Guest

    Re: Need help with code location PL EASE

    1) Alt/F11 brings up the Visual Basic window
    2) Insert, Module creates a new module

    However, you'll need more to work with than the above. Try the tutorials
    here
    http://www.geocities.com/WallStreet/9245/


    "PCOR" <[email protected]> wrote in message
    news:[email protected]...
    > Hi
    > I have been reading many tutorials but am still lost when it come to where
    > to place code.
    > I see the code below will total all the number in col A from line 1 to
    > 200.Great...but where do I put this code and how to I call it
    > Please be very specific..Thanks
    > totVal = Application.WorksheetFunction.Sum(Worksheets(1).Range("a1:a200"))
    > --
    > Norton Professional 2004 says this email is clean...believe it
    >




  4. #4
    Patrick Molloy
    Guest

    RE: Need help with code location PL EASE

    TIP

    Record a macro. when done, look under tools macros for your macro and select
    EDIT...this will take you to the module.
    The module is a standard code module...as already mentioned by otheres, but
    this way you'll get to see where it sits if you look in the Project Window of
    the IDE.

    Patrick Molloy
    Microsoft Excel MVP

    "PCOR" wrote:

    > Hi
    > I have been reading many tutorials but am still lost when it come to where
    > to place code.
    > I see the code below will total all the number in col A from line 1 to
    > 200.Great...but where do I put this code and how to I call it
    > Please be very specific..Thanks
    > totVal = Application.WorksheetFunction.Sum(Worksheets(1).Range("a1:a200"))
    > --
    > Norton Professional 2004 says this email is clean...believe it
    >
    >
    >


+ 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