+ Reply to Thread
Results 1 to 4 of 4

VBA - Fill data Macro

  1. #1
    Registered User
    Join Date
    07-18-2013
    Location
    Santiago, Chile
    MS-Off Ver
    Excel 2007
    Posts
    7

    Exclamation VBA - Fill data Macro

    Hi Guys,

    This is my first post and I don't speak english very well.
    I have a problem. I need to fill blank spaces with the first code until it changes for another one. My file has more than 130.000 files, thats why I need your help with a Macro or anything usefull
    Please see the first picture
    Capture.JPG

    The idea is to get as a result something like this
    Capture2.JPG

    Thanks for your time, I hope that I've explained well the idea.

    Best regards

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: VBA - Fill data Macro

    Try one of...

    Manually...
    Fill range with values from cell above
    • Highlight range from first cell to last
    • Select F5 >> Special >> Blanks >> OK
    • Press "=" sign one time then up arrow one time
    • Press Ctrl + Enter
    • Highlight range >> copy >> paste special as value


    With a macro...
    Please Login or Register  to view this content.
    Paste code in a Normal module
    • Where to paste code
    • Highlight macro to copy >> Ctrl + C >> Open your workbook
    • Alt + F11 >> opens the Visual Basic Editor (VBE)
    • Ctrl + R >>opens the Project Explorer (if not already open on left side of screen)
    • Insert menu >> Module or Alt + I, M >> activates the Insert menu and inserts a Standard Module
    • Paste code >> Ctrl + V (right side of screen)
    • Alt + Q >> exits VBE and returns to Excel
    • Back in Excel >> Alt + F8 >> Macro Dialog Box >> Highlight macro >> Run
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    07-18-2013
    Location
    Santiago, Chile
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: VBA - Fill data Macro

    Amazing, Thanks a lot, I did it manually, but I want to try the macro and learn a little bit how it works

    You're my new best friend

    Again, Thank you

    Best regards

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: VBA - Fill data Macro

    You are very welcome and glad it worked out for you.

    Thanks for the feedback.

+ 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 macro to fill data
    By kishoremcp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2012, 11:42 AM
  2. [SOLVED] Macro to fill down formula as many as there is data
    By elevisse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2012, 12:12 PM
  3. Macro to fill a table with data
    By akaponem in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-13-2012, 03:28 AM
  4. macro to fill data on different worksheet
    By Ceeseven in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2009, 09:31 AM
  5. Fill Down Data Macro
    By erock24 in forum Excel General
    Replies: 1
    Last Post: 04-14-2007, 02:10 AM

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