+ Reply to Thread
Results 1 to 3 of 3

Special Paste data using VBA to date specific column

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    Kununurra, Australia
    MS-Off Ver
    Excel 2007
    Posts
    8

    Special Paste data using VBA to date specific column

    I want to create a macro to enable me to copy two columns of data from the beginning of a spreadsheet to the end of it (next available column). The Sheet is designed to accumulate and save information, whilst those it feeds off are reset every fortnight.

    To avoid any errors once this is being used by other people (i.e clicking the button twice and repeating the process accidentally), I also want to limit the criteria for pasting by date. The spreadsheet in question has dates along the top (row 1), and feeds off another sheet which has WE end dates which are updated each time the spreadsheet is reset.

    Can I set a formula in VBA which will enable me to 'Paste special, value only, to columns which date match a particular cell in Sheet1 (AH5 or BL5)?'

    So far I've been using some code I found on another thread, and have been having a play with it (it didn't have paste special in the original, and I've changed the ranges). It works, but pastes the data wherever the cursor has been left..

    Please Login or Register  to view this content.
    I don't have a clue what I'm doing when it comes to VBA, so any help would be much appreciated.

    Workbook attached.

    Thanks,
    Last edited by JuliaBird; 10-09-2012 at 10:40 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Special Paste data using VBA to date specific column

    Hello JuliaBird ,

    Did you try Zipping the workbook? This will generally reduce the workbook to an acceptable size for posting.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    08-10-2012
    Location
    Kununurra, Australia
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Special Paste data using VBA to date specific column

    Hopefully this works..?
    Attached Files Attached Files

+ 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