+ Reply to Thread
Results 1 to 3 of 3

vba clear content

  1. #1
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    921

    vba clear content

    Hello

    I need vba code
    if user select any cell in range b1:b1000
    if the cell was not empty, then user delete cell value and it came empty
    then code make clear content only for that cell

    Thanks

  2. #2
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,420

    Re: vba clear content

    Your question is not entirely clear. Are you saying the user selects some cells with the range B1:B1000 and presses the Delete Key? If so, why would you need to clear the cells' content... the Delete Key would have already remove whatever was in it.

  3. #3
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    921

    Re: vba clear content

    i mean clean content not delete key

    i need this because i have another sheet with reference to this cells
    if i write in the main cell, the data copied to other sheet, but if i write in cell, then i select cell again and backspace and remove the value for main cell, i got blank cell i second sheet, it must be 0 if nothing there, and after i make clear content for first cell, its solved and second sheet back to 0

    i need it 0 because i have another codes when its 0

+ 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. [SOLVED] How to clear content based on value?
    By putritersenyum in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-05-2016, 01:13 PM
  2. [SOLVED] Clear content referencing another cell's same content
    By papusale in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-08-2015, 05:21 AM
  3. How to clear content up to row 2?
    By simplyfocus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2012, 02:17 PM
  4. Clear some content of a row
    By Nina07 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-01-2010, 08:37 AM
  5. Clear content
    By spoko in forum Excel General
    Replies: 2
    Last Post: 08-29-2007, 10:51 PM
  6. Clear Cells Content
    By No_Spam in forum Excel General
    Replies: 2
    Last Post: 08-20-2006, 11:05 AM
  7. Clear an XML Map of all content
    By DangerMouse in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2006, 09:45 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