+ Reply to Thread
Results 1 to 5 of 5

Insert 0 into specific column and specific rows

  1. #1
    Registered User
    Join Date
    07-01-2015
    Location
    United States
    MS-Off Ver
    2007
    Posts
    23

    Talking Insert 0 into specific column and specific rows

    Hello,

    I am looking for a macro that I can insert into a button that will insert a 0 into specified rows in a column. For example, I want rows 1-10, 3-20, 4-60 in column D to have a 0 inserted into those cells. Can anyone help with this? Thanks!

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Insert 0 into specific column and specific rows

    Isn't rows 1-10, 3-20, and 4-60 in column D the same as rows 1-60 in column D?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-01-2015
    Location
    United States
    MS-Off Ver
    2007
    Posts
    23

    Re: Insert 0 into specific column and specific rows

    I should have paid more attention when I was asking my question. I have some titles in between so for example it would be more like 1-10, 15-25, 30-40. See what I mean? Would I just put multiple "Range" functions that include the rows I need? Thanks!

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

    Re: Insert 0 into specific column and specific rows

    Hi try this code
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  5. #5
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Insert 0 into specific column and specific rows

    Would I just put multiple "Range" functions that include the rows I need?
    In your specific situation that would probably be best.

    Please Login or Register  to view this content.
    This is, of course, assuming that you don't need to test those ranges for a present value

+ 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. Delete Rows with specific text in specific column
    By love2waltz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2015, 10:16 AM
  2. [SOLVED] insert rows at specific changes in a column
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-07-2015, 02:33 PM
  3. [SOLVED] Insert Rows on Criteria and Copy content to Specific Cells in New Rows(Tables)
    By TheScott in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2015, 03:38 PM
  4. [SOLVED] Copy rows with specific text in specific column into specific sheet
    By Valemaar in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-22-2014, 03:23 PM
  5. Replies: 6
    Last Post: 04-08-2013, 05:12 PM
  6. Replies: 0
    Last Post: 10-23-2012, 04:59 PM
  7. Cut and paste rows which have a specific value in a specific column
    By Enigma1985 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-19-2012, 03:46 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