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: 1
Default How do I use quotes in an IF statement?


I'm trying to weed out some data out of an excel spreadsheet with lik
8000 rows. The problem I'm having is that Peoplesoft enters doubl
quotes for each cell and I'm not sure what the escape character (i
that's the solution) for VBA is. For example, I have the followin
if-then


Code
-------------------

Sub deleteMary()
Dim i As Integer

For i = 2 To 3886
If Cells(i, "D") = "Chase, Mary A" Then
Rows("D").Delete
End If
Next

End Sub

-------------------


The problem is that this particular name already has quotes in the cel
and I can't use ""Chase, Mary A"" in the If-expression. How can I solv
this problem?

Thanks!

Panuvi

--
panuvi
-----------------------------------------------------------------------
panuvin's Profile: http://www.excelforum.com/member.php...fo&userid=2381
View this thread: http://www.excelforum.com/showthread.php?threadid=40132

 
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
change straight quotes to curly quotes callico Excel Discussion (Misc queries) 2 June 22nd 07 10:23 PM
How do i get historical stock quotes using MSN Money Stock Quotes Ash Excel Discussion (Misc queries) 0 May 11th 06 03:26 AM
Using CSV and quotes Neil Excel Discussion (Misc queries) 4 October 31st 05 07:59 PM
Quotes PastorMike Excel Programming 1 May 4th 04 03:58 PM
Quotes Frank Kabel Excel Programming 0 May 4th 04 02:52 PM


All times are GMT +1. The time now is 09:59 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"