Closed Thread
Results 1 to 5 of 5

Macro that will clear contents of cell based on format of text in adjacent cell

  1. #1
    Registered User
    Join Date
    11-14-2008
    Location
    Brooklyn, NY, USA
    Posts
    53

    Macro that will clear contents of cell based on format of text in adjacent cell

    Hi All,
    Been racking brain, searching through the forum here, and my Excel 2003 Bible all day trying to figure out this problem to no avail.

    I would like to clear the contents of any cell in a given range if the cell immediately to the right of is formatted as bold.

    Any ideas?

    Thanks in advance for the help.

    Cheers,
    Tim
    Last edited by judasdac; 02-18-2009 at 05:53 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: Macro that will clear contents of cell based on format of text in adjacent cell

    Maybe

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    11-14-2008
    Location
    Brooklyn, NY, USA
    Posts
    53

    Thumbs up Re: Macro that will clear contents of cell based on format of text in adjacent cell

    That did the trick!!! Thanks!

  4. #4
    Registered User
    Join Date
    01-15-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Macro that will clear contents of cell based on format of text in adjacent cell

    Please tell me how to Move the cell value to adjacent cell based on indent or bold formatting rather than deleting, also need to insert a new row if two adjacent cells are in bold thanks in advance

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro that will clear contents of cell based on format of text in adjacent cell

    Hemaveera,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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