+ Reply to Thread
Results 1 to 4 of 4

How do you use ADDRESS function result in a macro as a paste destination

  1. #1
    Registered User
    Join Date
    09-04-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    How do you use ADDRESS function result in a macro as a paste destination

    I am currently trying to create a macro that will only paste a specific date into the ADDRESS function result location.

    I have used a LOOKUP function to find the column and row numbers then ADDRESS to give the cell reference of the correct location, the difficulty I am having is pasting to the correct location.

    Any Ideas would be welcome.

    thanks in advance

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,030

    Re: How do you use ADDRESS function result in a macro as a paste destination

    Maybe post the code and/or a sample workbook?

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    09-04-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: How do you use ADDRESS function result in a macro as a paste destination

    hopefully the attached will help to identify my problem.
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,030

    Re: How do you use ADDRESS function result in a macro as a paste destination

    There's no code in your sample book, although it is .xlsm file extension.

    You use the function something like: =INDIRECT(ADDRESS(N5,O$5)) = INDIRECT(Address(5, 7)) = G5

    You can't do a copy in an IF Function. You'd have to put the formula in the cell where you want the result.

    Regards, TMS

+ 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