LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How do I use quotes in an IF statement?

Didn't even spot that <g concentrating on the quotes.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mike Fogleman" wrote in message
...
Rows( i ).Delete

"D" would be a column

Mike F

"Bob Phillips" wrote in message
...
If Cells(i, "D") = """Chase Mary""" Then

--

HTH

RP
(remove nothere from the email address if mailing direct)


"panuvin" wrote

in
message ...

I'm trying to weed out some data out of an excel spreadsheet with like
8000 rows. The problem I'm having is that Peoplesoft enters double
quotes for each cell and I'm not sure what the escape character (if
that's the solution) for VBA is. For example, I have the following
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 cell
and I can't use ""Chase, Mary A"" in the If-expression. How can I

solve
this problem?

Thanks!

Panuvin


--
panuvin


------------------------------------------------------------------------
panuvin's Profile:

http://www.excelforum.com/member.php...o&userid=23818
View this thread:
http://www.excelforum.com/showthread...hreadid=401320







 
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 10:28 PM.

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"