+ Reply to Thread
Results 1 to 9 of 9

New to Macros: Automatically Populate Data to Different Spreadsheet

Hybrid View

  1. #1
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: New to Macros: Automatically Populate Data to Different Spreadsheet

    If that takes care of your original question, please select*Thread Tools*from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  2. #2
    Registered User
    Join Date
    10-23-2020
    Location
    Texas
    MS-Off Ver
    Professional Plus 2016
    Posts
    5

    Re: New to Macros: Automatically Populate Data to Different Spreadsheet

    I will make sure to do so! I actually have another question. I realized I made a mistake in my original cleanup and I was supposed to remove column titled 'require visa sponsorship'. I believe that changes the code to:

    Rows("1:7").Delete Shift:=xlUp
    Columns("B:J").Delete Shift:=xlToLeft
    Columns("C:R").Delete Shift:=xlToLeft
    Columns("E:Q").Delete Shift:=xlToLeft
    Columns("C:C").Select
    Selection.Replace What:="I am not a Veteran", Replacement:="N", LookAt:= _
    xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
    ReplaceFormat:=False
    Selection.Replace What:="Veteran", Replacement:="Y", LookAt:=xlPart, _
    SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
    ReplaceFormat:=False
    Columns("D:D").Select
    Selection.Replace What:="Yes", Replacement:="Y", LookAt:=xlPart, _
    SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
    ReplaceFormat:=False
    Selection.Replace What:="No", Replacement:="N", LookAt:=xlPart, _
    SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
    ReplaceFormat:=False
    Rows("1:1").AutoFilter
    ActiveSheet.AutoFilter.Sort.SortFields.Clear
    ActiveSheet.AutoFilter.Sort.SortFields.Add Key:=Range _
    ("A1"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
    xlSortNormal
    With ActiveSheet.AutoFilter.Sort
    .Header = xlYes
    .Apply


    I am still trying to figure out the rest on how it copies to the Formatted Spreadsheet, I will need to populate the cleaned data as follows:
    • Cleaned Data, Column A to Formatted spreadsheet, B25 (and on)
    • Cleaned Data, Column B to Formatted spreadsheet, C25 (and on)
    • Leave Formatted spreadsheet, D25 and on blank
    • Cleaned Data, Column C to Formatted spreadsheet, E25 (and on)
    • Cleaned Data, Column D to Formatted spreadsheet, F25 (and on)

    I'm realizing recording a macro adds alot of extra code in the equation and that's why it seems so confusing at first. The code you created seems simpler, however, I have yet to learn the rules on how everything is separated and what can go together and what can't.

+ 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. Automatically populate a spreadsheet with raw data
    By Mino_B in forum Excel General
    Replies: 3
    Last Post: 12-23-2019, 08:38 AM
  2. Populate data to spreadsheet automatically from data on two other spreadsheets
    By SpeckM in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2015, 12:06 PM
  3. Replies: 15
    Last Post: 10-27-2014, 08:45 PM
  4. [SOLVED] Trying to get vacation tracking spreadsheet to automatically populate calendar
    By wdry7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-17-2014, 05:03 AM
  5. Macros to retrieve data from Oracle DB to populate excel spreadsheet
    By dolytay in forum Access Tables & Databases
    Replies: 0
    Last Post: 04-01-2013, 06:42 PM
  6. Using macros to populate data from a form
    By abhi2407 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-15-2012, 06:46 PM
  7. Replies: 3
    Last Post: 01-09-2012, 09:04 PM

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