Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 07-05-2018, 09:15 AM
Logit Logit is offline I am trying to remove the $- from the cells with no data on a large spread sheet Windows 10 I am trying to remove the $- from the cells with no data on a large spread sheet Office 2007
Expert
 
Join Date: Jan 2017
Posts: 591
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

Code:
Sub Test()
    Dim rng As Range
    Dim cel As Range
        
    Set rng = Range("A1:Z100")  '<-- change range as required.
    Application.ScreenUpdating = False
        For Each cel In rng
            If cel.Value = "$-" Then cel.ClearContents
        Next cel
    Application.ScreenUpdating = True
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
I am trying to remove the $- from the cells with no data on a large spread sheet Data from a specific row in a spread sheet into a form JohnnySTI Excel Programming 13 01-24-2018 01:20 PM
I am trying to remove the $- from the cells with no data on a large spread sheet Simple Spread Sheet TThomas Excel 1 04-07-2016 09:01 PM
I am trying to remove the $- from the cells with no data on a large spread sheet Using combobox to pass data from an Excel spread sheet to text boxes on userform Stewie840 Word VBA 14 12-17-2015 10:13 PM
Copy data from certain Cells in new sheet zain_shaikh Excel Programming 1 02-11-2015 07:35 PM
Condensing a spread sheet hawkeyefxr Excel 4 08-22-2012 05:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:52 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft