+ Reply to Thread
Results 1 to 3 of 3

VBA, selecting specific row dated past 7 days (week)

  1. #1
    Registered User
    Join Date
    12-09-2016
    Location
    Odense, Denmark
    MS-Off Ver
    MS 10
    Posts
    3

    VBA, selecting specific row dated past 7 days (week)

    Hi fokes.

    I'm relatively new to this VBA and trying to make a process at work a lot easier.

    I have an Excel sheet where rows are filled by different people and column F indicates the date the data was posted.

    I want to search the document with a VBA macro looking only for rows where the dates in column F are within the past 7 days.
    When the rows are indicated, I want to select the data from column A in this row, and post in a different workbook.

    Is this possible to do with a VBA macro and which code would i need ?

    Best regards

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: VBA, selecting specific row dated past 7 days (week)

    see post#03
    (deleted - duplicated post)
    Last edited by kev_; 12-09-2016 at 10:35 AM.

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: VBA, selecting specific row dated past 7 days (week)

    This is one way
    Open the attached workbook and run macro with {CTRL} + t
    Results based on values in sheet1, appear in sheet2

    Please Login or Register  to view this content.
    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)

Similar Threads

  1. [SOLVED] Rounding dates to specific working days of the week
    By Sarah C in forum Excel General
    Replies: 7
    Last Post: 07-13-2016, 12:19 PM
  2. [SOLVED] VBA to analyze specific days of the week within date range?
    By hopegriffin in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-04-2016, 10:33 PM
  3. Only show specific days of the week in a chart
    By shjenk1 in forum Excel General
    Replies: 3
    Last Post: 07-18-2015, 05:55 AM
  4. dated horiizontal-axis with days needed to be omited.
    By Shynnblue in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2013, 10:20 AM
  5. [SOLVED] Print same doc dated with all week days of that month
    By beinluck in forum Excel General
    Replies: 2
    Last Post: 08-16-2012, 03:02 AM
  6. [SOLVED] Counting Specific Values & Days of the Week
    By bugmenot in forum Excel General
    Replies: 3
    Last Post: 01-23-2009, 04:38 AM
  7. [SOLVED] selecting days of week using a formula in spreadsheets
    By Terry in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-23-2005, 09:07 AM

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