LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default how to Detect paragraph in cell in string?

I am doing an if then statement. I want to check if a cell has a
certain contents, but the text in the cell is on 2 seperate lines and
so the IF statement returns fales and does not clear the cell.

I export a file to excel and then run the macro to update it. I don't
want the contents of the cells to be cleared unless it is this text
that is on 2 lines. The slash in the code is where a paragraph should
be.

This is what I have

If ActiveCell.FormulaR1C1 = "Account Title/Account Name" Then
ActiveCell.FormulaR1C1 = ""
Range("F" & MyRow & ":F" & MyRow).Select
ActiveCell.FormulaR1C1 = ""
Else
End If

Thanks for the help!

Dave

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro for detect palindromes and repeats in letters/numbers string Luciano Paulino da Silva Excel Worksheet Functions 33 April 16th 09 04:59 PM
Macro for detect palindromes and repeats in letters/numbers string Luciano Paulino da Silva New Users to Excel 5 April 14th 09 08:44 PM
Can't see all of the paragraph text in the cell. KW Excel Discussion (Misc queries) 3 October 25th 06 02:16 PM
Starting a new paragraph within a cell Kath firman Excel Discussion (Misc queries) 2 January 5th 06 03:34 PM
Qn: Paragraph or LF in ONE Cell?? Michael Vaughan Excel Programming 1 August 18th 04 05:13 PM


All times are GMT +1. The time now is 12:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"