+ Reply to Thread
Results 1 to 6 of 6

edit a script that gets data from one sheet and displays on another sheet

  1. #1
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    edit a script that gets data from one sheet and displays on another sheet

    I have a code that works partially and wonder if someone can figure out how to fix this.

    1) should sort the data in sheet "Due"
    3) Find the lowest 3 and paste them "Upcoming"
    3) Should overwrite the previous ones on "Upcoming" Upcoming should not ever have more than 3

    Currently it collects the data and puts it the correct sheet but doesnt overwrite the data and does not sort the data prior to copy and paste.

    assignments-2 ver 1a.xlsm

    Thank you for looking

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: edit a script that gets data from one sheet and displays on another sheet

    Hi Mr_Bill

    In your Sample File will the results look like this?

    A
    B
    C
    D
    2
    Upcoming Assignments
    3
    Course
    Assignment Name
    Due Date
    Days Left
    4
    Writing Essay
    9/26/2014
    -4 Days
    5
    Writing Essay
    9/26/2014
    -4 Days
    6
    Writing Essay
    9/27/2014
    -3 Days
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    Re: edit a script that gets data from one sheet and displays on another sheet

    Yes, but one thing I forgot to mention is the results will be in E2:H6 instead of A2:D6

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: edit a script that gets data from one sheet and displays on another sheet

    Hi Mr_Bill

    That's a pretty critical "forgot".

    In an attachment, show us the Structure of your Actual Workbook and the Structure of your desired Results.

  5. #5
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    Re: edit a script that gets data from one sheet and displays on another sheet

    okay assignments-2 ver 1a.xlsm I moved the upcoming area to E:H It is going to change when you open it since it keeps adding data
    Here is screenshot of how it should look. Upcoming.PNG

  6. #6
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    Re: edit a script that gets data from one sheet and displays on another sheet

    I am going to abandon this idea. Was able to edit the columns which was rather easy but no clue how to make it show only three results and over write the old ones when the sheet is opened again. Seems this is a tough one to do. So marking this one solved for now maybe someday I will pick this project back up and try to get this fixed

+ 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. Script not copying data from "Emails" sheet to "New Sheet" - Run time error: Object
    By methuselah90 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2014, 03:22 PM
  2. combobox on sheet only displays some data
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2014, 12:28 PM
  3. Replies: 5
    Last Post: 08-16-2013, 07:34 PM
  4. Help to modify VBA script so it displays results in other sheet ce
    By Calle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2006, 10:20 AM
  5. [SOLVED] Edit bar displays data different from table cell
    By Scott B in forum Excel General
    Replies: 5
    Last Post: 06-17-2006, 08:10 PM

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