+ Reply to Thread
Results 1 to 5 of 5

Remove only the values from the current row

  1. #1
    Forum Contributor
    Join Date
    03-29-2013
    Location
    US
    MS-Off Ver
    Office 2016
    Posts
    109

    Remove only the values from the current row

    I have a worksheet where I commonly remove lines. What I don't want to do is delete the row in the sheet, as I always want there to be 50 lines for entries. What I've been doing (for years) is placing my cursor in first cell, hit DELETE, tab, DELETE, tab ... while being careful to skip any cells that contain formulas.

    How would I write a macro that will only remove the values from cells in the current row? Then I could just place my cursor in the row, hit a hot-key and voilą, I'm done.

  2. #2
    Forum Contributor
    Join Date
    03-29-2013
    Location
    US
    MS-Off Ver
    Office 2016
    Posts
    109

    re: Remove only the values from the current row

    (for some reason, I can't edit my original post)

    Now that I think about it, it would be handier if I could perform the above on a range. Then I could highlight either multiple rows or any arbitrary area on a sheet.

  3. #3
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    365 32bit Win
    Posts
    1,908

    Re: Remove only the values from the current row

    Maybe something along these lines.


    Please Login or Register  to view this content.
    or for a selection
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,150

    Re: Remove only the values from the current row

    ... and ...
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-29-2013
    Location
    US
    MS-Off Ver
    Office 2016
    Posts
    109

    Re: Remove only the values from the current row

    Quote Originally Posted by ByteMarks View Post
    Please Login or Register  to view this content.
    Thank you! That worked perfectly.

+ 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. How to remove rows that contain current date (mm/dd/yyyy)
    By joshuarobbins in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-21-2015, 08:35 PM
  2. remove duplicates - keep most current
    By boltsg4 in forum Excel General
    Replies: 2
    Last Post: 03-20-2015, 10:09 AM
  3. [SOLVED] Set PivotTable Filter to Current Day, Current Week, Current Month, or Current Year
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2014, 08:31 AM
  4. [SOLVED] Remove current item on combobox
    By MarmaladeLover in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-29-2014, 09:08 AM
  5. Replies: 3
    Last Post: 03-22-2013, 01:39 AM
  6. [SOLVED] remove all formulas but keep current cell value
    By Declan.Ryan in forum Excel General
    Replies: 5
    Last Post: 11-13-2012, 11:07 AM
  7. How to remove all the rows which doesnt belong to the current month
    By raghunaik in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-23-2009, 11: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