+ Reply to Thread
Results 1 to 2 of 2

Creating macro to use data from one excel sheet to populate dif one with dif format

  1. #1
    Registered User
    Join Date
    07-20-2016
    Location
    Denver
    MS-Off Ver
    Mac 2011
    Posts
    1

    Creating macro to use data from one excel sheet to populate dif one with dif format

    Hello, I need help creating a macro. I am receiving a populated excel file from an outside source, but I need the information in the excel sheet to be in a different format. Here are screenshots of first the excel sheet that I am receiving, and then the excel sheet in the format that I need it to be in:

    Screen Shot 2016-07-20 at 3.37.44 PM.png

    Screen Shot 2016-07-20 at 3.40.21 PM.png

    So as you can see it is using the same content, but different format. For instance cell G27, G28 in the original sheet are used to populate cell E11 in the new sheet. The difference is the two cells information needs to be in one cell, with each name separated by a comma in the new sheet.

    I used the macro recorder to help me, but it is not creating a general macro. This is what it comes out with:

    Sub Macro7()
    '
    ' Macro7 Macro
    '

    '
    Range("D19:E19").Select
    ActiveCell.FormulaR1C1 = "Making Me Smile"
    Windows("Workbook1").Activate
    ActiveSheet.Paste
    Windows("FIXER UPPER 304 ENHANCED_final.xlsx").Activate
    Range("G19").Select
    ActiveCell.FormulaR1C1 = "David John Vanacore"
    Windows("Workbook1").Activate
    Range("E10").Select
    ActiveSheet.Paste
    Windows("FIXER UPPER 304 ENHANCED_final.xlsx").Activate
    Range("G20").Select
    ActiveCell.FormulaR1C1 = "Keith Richard Horn"
    Windows("Workbook1").Activate
    Range("E10").Select
    ActiveCell.FormulaR1C1 = "David John Vanacore, Keith Richard Horn"
    Range("E11").Select
    Windows("FIXER UPPER 304 ENHANCED_final.xlsx").Activate
    Range("K19").Select
    ActiveCell.FormulaR1C1 = "Mocha Drive Publishing"
    Windows("Workbook1").Activate
    Range("F10").Select
    ActiveSheet.Paste
    End Sub


    I need it to be using "Cell Content" instead of specific names so that the macro will be a general macro that can be used on different files with the same formats. What would I put in the "" instead of the specific names so that it pulls whatever is in the cell instead of specific words?

    Thanks for helping me out!

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Creating macro to use data from one excel sheet to populate dif one with dif format

    It is better to upload the workbook instead of screen shots ..
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

+ 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. Need help to create a MACRO to compare two excel sheet and populate the data
    By prashantrcz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-04-2014, 07:24 AM
  2. Want to auto populate an excel sheet from a master sheet of data
    By M>E> in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-07-2014, 03:34 PM
  3. Auto-Populate Data Entry Format Based on Drop Down Selection. Macro?
    By pro10is4life in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2013, 01:16 AM
  4. [SOLVED] Excel VBA: Dropdown box selection in first sheet to populate 2nd sheet from 3rd sheet data
    By EMLalan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-07-2012, 09:46 AM
  5. Creating Macro to copy excel sheet from workbook1 and past into excel sheet workbook2
    By t_gagliardi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-06-2012, 01:19 PM
  6. How to populate daily data in 24 hour format into Excel?
    By DorothyFan1 in forum Excel General
    Replies: 5
    Last Post: 04-18-2012, 10:53 AM
  7. can I clean old excel data format with macro on funny spread sheet
    By Todd F. in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2005, 05:05 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