+ Reply to Thread
Results 1 to 4 of 4

Recognising date then exporting data to correct location

Hybrid View

  1. #1
    Registered User
    Join Date
    12-27-2008
    Location
    Christchurch, New Zealand
    Posts
    92

    Recognising date then exporting data to correct location

    I have two workbooks, WB1 and WB2. I have attached a workbook with two sheets which represent the two seperates workbooks. I basically need a macro in WB1 that will send the contents of B3:B7 to the corresponding cells in WB2. The problem is that the date in WB1 will change each day so the cells to copy to in WB2 will change according to the date.

    How would I go about writing a macro to do this?
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Recognising date then exporting data to correct location

    I see that in WB2, dates appear in column A & H, now what about a date like April 3rd, in which column would it appear?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    12-27-2008
    Location
    Christchurch, New Zealand
    Posts
    92

    Re: Recognising date then exporting data to correct location

    April 3rd would be in O7, 4th in V7 and so on. Basically, Sunday's in column A, Mondays in col H, Tuesdays in col O etc.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Recognising date then exporting data to correct location

    One last question - will the order of numbers in WB1 column A always be the same as WB2 row 6?

+ 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