+ Reply to Thread
Results 1 to 14 of 14

Excel 2007 : Copying from multiple templates based on criteria.

Hybrid View

  1. #1
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Copying from multiple templates based on criteria.

    i'd suggest declaring a worksheet variable for ease of use:

    dim whichTemplate as worksheet
    then to point that variable to the right template use this line below (i can't tell which sheet contains the selection - for the purpose of this answer i will assume it's in a sheet named "Summary" and the template selection is sitting in cell a3 of that sheet)

    set whichTemplate = thisworkbook.worksheets(thisworkbook.worksheets("Summary").range("A3").value)
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  2. #2
    Registered User
    Join Date
    11-23-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Copying from multiple templates based on criteria.

    I just started using excel about 3 months ago, if I attach the workbook, do you think you can rewrite the code? I have no idea how to write code, I copied that code from a forum . Thank you for the quick reply though.

+ 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