Results 1 to 12 of 12

VBA code to automatically clear a cells contents when another cell is empty

Threaded View

masso1980 VBA code to automatically... 07-25-2012, 10:02 AM
GaidenFocus Re: VBA code to automatically... 07-25-2012, 10:08 AM
masso1980 Re: VBA code to automatically... 07-25-2012, 10:42 AM
GaidenFocus Re: VBA code to automatically... 07-25-2012, 10:48 AM
masso1980 Re: VBA code to automatically... 07-25-2012, 11:54 AM
GaidenFocus Re: VBA code to automatically... 07-25-2012, 12:16 PM
masso1980 Re: VBA code to automatically... 07-25-2012, 01:48 PM
GaidenFocus Re: VBA code to automatically... 07-25-2012, 02:20 PM
masso1980 Re: VBA code to automatically... 07-25-2012, 02:45 PM
GaidenFocus Re: VBA code to automatically... 07-25-2012, 03:40 PM
masso1980 Re: VBA code to automatically... 07-25-2012, 06:17 PM
Cutter Re: VBA code to automatically... 07-25-2012, 10:52 PM
  1. #2
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: VBA code to automatically clear a cells contents when another cell is empty

    Not sure what you are trying to accomplish but instead of 100 if statements use this

    Dim tmpbox as range
    
    set tmpbox = range("A8")
    activesheet.unprotect
    
    Do until tmpbox.row = 26
    If tmpbox.value = "" then
    tmpbox.offset(0,1).value = ""
    end if
    set tmpbox = tmpbox.offset(1,0)
    loop
    activesheet.protect
    Last edited by GaidenFocus; 07-25-2012 at 10:13 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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