+ Reply to Thread
Results 1 to 4 of 4

Filling Empty Cells With Value VBA in ever changing file

Hybrid View

  1. #1
    Registered User
    Join Date
    03-25-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    34

    Filling Empty Cells With Value VBA in ever changing file

    I am trying to make a program that will run on an exiting spreadsheet generated by someone else. This sheet will change in number of items size every time its generated but I know that the first 5 rows will be constant throughout. I have figured out a way of doing the process by hand operations in excel but I haven't been able to produce any vba code that could do this automatically.

    The attached sample file file shows a starting point for the file, the end result and the excel calculations needed to get there.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Filling Empty Cells With Value VBA in ever changing file

    Does this help?

    Sub penbeacho()
    With Range("E5:E" & Range("C" & Rows.Count).End(3).Row).SpecialCells(4)
        .Font.ColorIndex = 3
        .Font.Bold = True
        .Value = "Operating"
    End With
    End Sub

  3. #3
    Registered User
    Join Date
    03-25-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    34

    Re: Filling Empty Cells With Value VBA in ever changing file

    This Worked Great, Thank you so much!!

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Filling Empty Cells With Value VBA in ever changing file

    You're welcome. Glad to help out and thanks for the feedback. Please comply with Forum Rules and mark this thread as SOLVED. Refer too link for guidance.

    http://www.excelforum.com/forum-rule...rum-rules.html

+ 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. Replies: 1
    Last Post: 05-26-2014, 01:31 PM
  2. [SOLVED] Filling Empty Cells with Zeroes
    By One-Eyed Enos in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2012, 03:22 PM
  3. Filling empty cells
    By bukimiak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2011, 08:14 AM
  4. Help on filling empty cells with string + row()
    By John Smith in forum Excel General
    Replies: 1
    Last Post: 07-13-2006, 11:44 PM
  5. [SOLVED] Filling empty cells with a value
    By Ian Richardson ACITP in forum Excel General
    Replies: 4
    Last Post: 05-17-2006, 10:30 AM

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