+ Reply to Thread
Results 1 to 3 of 3

Select certain columns based on certain date displayed in Row 1

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Select certain columns based on certain date displayed in Row 1

    Hi guys,

    I need your help!

    I'm trying to design a macro but I just can't get it right. The problem is as follows:

    I have a sheet with data for each month from January 2012 to December 2018. The cells are linked to another sheet, but each month I need the data to be copied and pasted again as values to get them fixed like they were in this certain month. So one example:

    It's June 2013 which is displayed as text "June 2013" in merged cell "CQ1:CT1". If the actual month (connected to todays date) is June 2013 I need Excel to select the whole columns CQ, CR, CS, and CT. Then copy and paste the values.

    This has to work for every month in the years 2012-2018 and would be best to be in a macro.

    Can anybody provide me with a macro like this?

    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Select certain columns based on certain date displayed in Row 1

    See attached file, I used this macro:
    Please Login or Register  to view this content.
    Regards,
    Antonio
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-18-2013
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Select certain columns based on certain date displayed in Row 1

    wow awesome thank you so much!

+ 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