+ Reply to Thread
Results 1 to 7 of 7

VBA - Pasting Values into Changing Cell

  1. #1
    Registered User
    Join Date
    04-16-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Smile VBA - Pasting Values into Changing Cell

    Hey Everyone,

    I'm trying to create a table that updates via a macro using information input into a cell. The issue is that the data is added to the table based on the date, so the destination cell will change each day.

    Here is the code I have (using named ranges). I think I am close, but I keep getting the "Unable to get the Match property of the WorksheetFunction class."

    Please Login or Register  to view this content.
    Thank you! I really appreciate any help or guidance!

    -Ben

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: VBA - Pasting Values into Changing Cell

    Hi Ben,

    This is untested but if it still erroring then please upload a dummy workbook.

    Please Login or Register  to view this content.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    04-16-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: VBA - Pasting Values into Changing Cell

    Hey there, thanks for the response.

    I've simplified what I need the macro to do, but I'm still getting the same error regarding the MATCH function. I've uploaded a dummy workbook.

    My code is:

    Please Login or Register  to view this content.
    Thank you!Delete Row Macro.xlsm

  4. #4
    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: VBA - Pasting Values into Changing Cell

    Hello ,

    You can use either Application.Match or WorksheetFunction.Match but not both together. Can the line to what is below.
    Please Login or Register  to view this content.
    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!)

  5. #5
    Registered User
    Join Date
    04-16-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: VBA - Pasting Values into Changing Cell

    Thanks Leith,

    That worked! I also had to change Dim ActualDate as Long (instead of as Date). Just curious if you have any idea why Long vs. Date would make it fail, since it is a Date in this case.

    Thanks,
    Ben

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: VBA - Pasting Values into Changing Cell

    Hi Ben and Leith,

    You can also change this:

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-16-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: VBA - Pasting Values into Changing Cell

    Thanks abousetta, that is helpful as well.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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