+ Reply to Thread
Results 1 to 3 of 3

Look up Specific Cell, Paste next to it

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    Queensland
    MS-Off Ver
    Excel 2007
    Posts
    36

    Look up Specific Cell, Paste next to it

    Hi Everyone

    I've got a basic macro copying information from a specific workbook, and pasting in another

    ExportFol = Report Directory of source workbook
    YYYY_MM = the Year and month the Data is for e.g. "2014 02"
    Report = Report Name e.g. "Report.XLSM"

    Please Login or Register  to view this content.
    I want to paste in a very specific location, which will change depending on what month the report was run for

    In Range("A2:A13") I have the related Reporting Period in the YYYY_MM format (2013 07, 2013 08, 2013 09, etc)

    I was wondering if there was a way to Find a specific reporting month in the range (A2:A13) using my existing defined String YYYY_MM, then Offset(0,1) from it and paste next to it

    So e.g.

    If running the report for July 2013
    - Cell A2 = 2013 07
    - Offset(0,1) from A2, to get to B2, and paste there

    If running the report for August 2013
    - Cell A3 = 2013 08
    - Offset(0,1) from A3, to get to B3, and paste there


    Any Help be greatly Appreciated

    Thanks in advance

  2. #2
    Registered User
    Join Date
    04-04-2013
    Location
    Prague
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Look up Specific Cell, Paste next to it

    HI,

    I guess value of current version of report is stored in variable YYYY_MM. Hope this help.

    Please Login or Register  to view this content.

    cheers,

    Tomas

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Look up Specific Cell, Paste next to it

    Maybe:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to copy specific line from text file and paste into specific cell in excel
    By keeneye in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:35 AM
  2. Replies: 0
    Last Post: 11-06-2012, 06:44 PM
  3. Replies: 5
    Last Post: 09-30-2010, 01:50 PM
  4. How do I Paste thie answer into specific cell using vb...tia sal
    By in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2005, 11:05 AM
  5. A Macro that will cut and paste to specific cell
    By VBA12thRoundDraftPick in forum Excel General
    Replies: 2
    Last Post: 03-31-2005, 02:06 AM

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