Are there any Microsoft Excel gurus out there?

Are there any Microsoft Excel gurus out there?

Investor · ST. Augustine, FL · Member since 2013 · 92 posts · 31 votes

I need a little help building a quick and easy macro, and im having a tough time (im no programmer). Basically it works like this:

Sheet 1 is a list of 10,000 property addresses and other info.
Sheet 2 is a template .enex file i exported from evernote.

What I want to do is create a macro that copies the template into sheet 3, then auto populates the info from each row of sheet 1 into a row on sheet 3 with the pre created template.

This way I can make my 10,000 properties individual notes to be uploaded into evernote.

I can pretty much create the macro to do one template, but I dont understand how to look it and make it go through the entire list from sheet 1.

Any help would be greatly appreciated.

0Reply
29 views

Most Popular Reply

Dion DePaoliPro Member
Real Estate Broker · Northwest Indiana, IN · Member since 2011 · 2k+ posts · 2k+ votes
13y

You can record the macro procedures to do what you want, which sounds like some copy and paste event type thing. Then you can place those instructions in a loop that searches tests for the last record in the sheet.

Here is one example which searches for the an empty cell to determine if the loop should continue. This will allow the macro to be dynamic and work in a sheet with 10 or 10,000 data lines.

Sub ReportMaker()
Range("A2").Select ' Select cell with first set of data only replace inside the " "
Do Until IsEmpty(ActiveCell) ' Set Do loop to stop when an empty cell is reached.

' Insert your code here.

ActiveCell.Offset(1, 0).Select ' Step down 1 row from present location moving to the next record. If the records are multi line, increase the "1" by number of rows. This will require the data to be formated in terms of rows to be similar.
Loop
End Sub

You can create some code to automate the Evernote export but that might be a little overkill for what you are doing. That code is a bit more advanced and long. For the sake of simplicity, I would simply export the Evernote file into excel or import into excel manually.

See this reply in the discussion

12 Replies

Jump to latestLatest
  • Realtor · Celebration, FL · Member since 2013 · 109 posts · 34 votes
    13y

    You should be able to just RECORD your steps and that creates the macro. Within the record feature you will just have to go through all of the steps on sheet1. Then just add a macro button.

  • Manhattan, KS · Member since 2013 · 2 posts · 1 vote
    13y

    Sounds like something that the "lookup" or "vlookup" functions might be useful for?

  • Dion DePaoliPro Member
    Real Estate Broker · Northwest Indiana, IN · Member since 2011 · 2k+ posts · 2k+ votes
    13y

    You can record the macro procedures to do what you want, which sounds like some copy and paste event type thing. Then you can place those instructions in a loop that searches tests for the last record in the sheet.

    Here is one example which searches for the an empty cell to determine if the loop should continue. This will allow the macro to be dynamic and work in a sheet with 10 or 10,000 data lines.

    Sub ReportMaker()
    Range("A2").Select ' Select cell with first set of data only replace inside the " "
    Do Until IsEmpty(ActiveCell) ' Set Do loop to stop when an empty cell is reached.

    ' Insert your code here.

    ActiveCell.Offset(1, 0).Select ' Step down 1 row from present location moving to the next record. If the records are multi line, increase the "1" by number of rows. This will require the data to be formated in terms of rows to be similar.
    Loop
    End Sub

    You can create some code to automate the Evernote export but that might be a little overkill for what you are doing. That code is a bit more advanced and long. For the sake of simplicity, I would simply export the Evernote file into excel or import into excel manually.

  • Dion DePaoliPro Member
    Real Estate Broker · Northwest Indiana, IN · Member since 2011 · 2k+ posts · 2k+ votes
    13y

    The excel functions VLookup or alike would not work for the desired application. Those functions only return the value of the looked up cell and does not create a loop of any kind.

  • Investor · ST. Augustine, FL · Member since 2013 · 92 posts · 31 votes
    13y

    Dion DePaoli Thanks, Dion! This looks like exactly what i am in need of, hopefully I can get it to work. I appreciate it. Thanks again.

  • SFR Investor · Los Angeles, CA · Member since 2013 · 134 posts · 16 votes
    13y

    YouTube is your friend. Tons of examples there.

  • Civil Engineer · Orange County, CA · Member since 2012 · 189 posts · 45 votes
    13y

    Got to love loops. Makes you a rock star when mining data in a spreadsheet.

  • Investor · ST. Augustine, FL · Member since 2013 · 92 posts · 31 votes
    13y

    Wow, I thought I was pretty tech saavy, but this is beyond what I can do. Thanks for the help guys, going to have to find someone that can program it for me.

  • Commercial Real Estate Broker · Moreno Valley, CA · Member since 2008 · 72 posts · 30 votes
    13y

    Ryan, I will send you a PM with my contact info. I might be able to help you out with the macro.

  • Civil Engineer · Orange County, CA · Member since 2012 · 189 posts · 45 votes
    13y

    Ryan Thomas, let me know as well if you need any help. It wouldn't take too long.

  • Justin SilverioPro Member
    Developer · Andover, MA · Member since 2008 · 1k+ posts · 489 votes
    13y

    @Ryan Thomas if you still need help, check out fiverr.com. I use the website for stuff like this. You can't beat the price at $5/gig.

  • Investor · Kadima, Out of State · Member since 2013 · 7 posts · 0 votes
    13y

    Ryan,

    If you send me an example spreadsheet, I'll have a go and help you out.

    Gil

Join the conversationCreate a free account to reply, vote on answers and follow this thread.