+ Reply to Thread
Results 1 to 3 of 3

Create a macro to extract a total from another sheet!

  1. #1
    Registered User
    Join Date
    09-08-2008
    Location
    London
    Posts
    40

    Create a macro to extract a total from another sheet!

    Hi,

    I attached an example. Basically I want a macro to select the "total" cell in sheet 2 and put it into the "total" cell in sheet 1.

    The "total" cell in sheet 2 is always in the same column but can vary as to which row it will appear in. I know this has something to do with the 'lastcell' referencing but don't know how to do it.

    Please help!


    Thanks,
    McQLon
    Attached Files Attached Files
    Last edited by McQLon; 01-27-2009 at 01:32 PM.

  2. #2
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Create a macro to extract a total from another sheet!

    Hi

    If the changes in sheets 2 are as a result of inserting/deleting rows, you could possibly use link rather than vba. If not then there are a number of ways to find the last row/cell and for your example
    Please Login or Register  to view this content.
    regards

    Jeff

  3. #3
    Registered User
    Join Date
    09-08-2008
    Location
    London
    Posts
    40

    Re: Create a macro to extract a total from another sheet!

    It works pefectly! Thank you very much for your help!

+ 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