Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
bw bw is offline
external usenet poster
 
Posts: 74
Default Extra Quote Mark

CODE
fname = "ChkDigitsSent" & Format(Now(), "mm") & Format(Now(), "dd") &
Format(Now(), "yy") & ".xls"
MsgBox fname ' There is no quote mark displayed here
ans = MsgBox("Do you want to save a copy of the file as: " & Chr$(10) &
Chr$(34) & fname, vbYesNo + vbQuestion, "Create Copy?") ' There IS a quote
mark displayed here (see below)

QUESTION
I'd like to know where the quote mark is coming from as is generated by the
code above.

MESSAGE BOX
Do you want to save a copy of the file as:
"ChkDigitsSent013005.xls



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Extra Quote Mark

chr$(34) is that quote mark.

If you don't want it, delete it.

ans = MsgBox("Do you want to save a copy of the file as: " & Chr$(10) _
& fname, vbYesNo + vbQuestion, "Create Copy?")

If you want one at the other end, add one.

ans = MsgBox("Do you want to save a copy of the file as: " & Chr$(10) _
& Chr$(34) & fname & chr$(34), vbYesNo + vbQuestion, "Create Copy?")



bw wrote:

CODE
fname = "ChkDigitsSent" & Format(Now(), "mm") & Format(Now(), "dd") &
Format(Now(), "yy") & ".xls"
MsgBox fname ' There is no quote mark displayed here
ans = MsgBox("Do you want to save a copy of the file as: " & Chr$(10) &
Chr$(34) & fname, vbYesNo + vbQuestion, "Create Copy?") ' There IS a quote
mark displayed here (see below)

QUESTION
I'd like to know where the quote mark is coming from as is generated by the
code above.

MESSAGE BOX
Do you want to save a copy of the file as:
"ChkDigitsSent013005.xls


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default Extra Quote Mark

Hi,

Can you tell me what the difference is between Chr(10) and Chr$(10)? (The $
part rather than the 10.)

Thanks

John
"Dave Peterson" wrote in message
...
chr$(34) is that quote mark.

If you don't want it, delete it.

ans = MsgBox("Do you want to save a copy of the file as: " & Chr$(10) _
& fname, vbYesNo + vbQuestion, "Create Copy?")

If you want one at the other end, add one.

ans = MsgBox("Do you want to save a copy of the file as: " & Chr$(10) _
& Chr$(34) & fname & chr$(34), vbYesNo + vbQuestion, "Create
Copy?")



bw wrote:

CODE
fname = "ChkDigitsSent" & Format(Now(), "mm") & Format(Now(), "dd") &
Format(Now(), "yy") & ".xls"
MsgBox fname ' There is no quote mark displayed here
ans = MsgBox("Do you want to save a copy of the file as: " & Chr$(10)
&
Chr$(34) & fname, vbYesNo + vbQuestion, "Create Copy?") ' There IS a
quote
mark displayed here (see below)

QUESTION
I'd like to know where the quote mark is coming from as is generated by
the
code above.

MESSAGE BOX
Do you want to save a copy of the file as:
"ChkDigitsSent013005.xls


--

Dave Peterson



  #4   Report Post  
Posted to microsoft.public.excel.programming
bw bw is offline
external usenet poster
 
Posts: 74
Default Extra Quote Mark

Thanks Dave,

I can't tell you how stupid I feel sometimes. Chr$(34) was suppose to be
Chr$(13), but I just couldn't see the mistake I had made.

I appreciate your help.
Bernie


"Dave Peterson" wrote in message
...
chr$(34) is that quote mark.

If you don't want it, delete it.

ans = MsgBox("Do you want to save a copy of the file as: " & Chr$(10) _
& fname, vbYesNo + vbQuestion, "Create Copy?")

If you want one at the other end, add one.

ans = MsgBox("Do you want to save a copy of the file as: " & Chr$(10) _
& Chr$(34) & fname & chr$(34), vbYesNo + vbQuestion, "Create

Copy?")



bw wrote:

CODE
fname = "ChkDigitsSent" & Format(Now(), "mm") & Format(Now(), "dd")

&
Format(Now(), "yy") & ".xls"
MsgBox fname ' There is no quote mark displayed here
ans = MsgBox("Do you want to save a copy of the file as: " &

Chr$(10) &
Chr$(34) & fname, vbYesNo + vbQuestion, "Create Copy?") ' There IS a

quote
mark displayed here (see below)

QUESTION
I'd like to know where the quote mark is coming from as is generated by

the
code above.

MESSAGE BOX
Do you want to save a copy of the file as:
"ChkDigitsSent013005.xls


--

Dave Peterson



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Extra Quote Mark

In current versions of excel, there is no difference.

--
Regards,
Tom Ogilvy

"John" wrote in message
...
Hi,

Can you tell me what the difference is between Chr(10) and Chr$(10)? (The

$
part rather than the 10.)

Thanks

John
"Dave Peterson" wrote in message
...
chr$(34) is that quote mark.

If you don't want it, delete it.

ans = MsgBox("Do you want to save a copy of the file as: " & Chr$(10) _
& fname, vbYesNo + vbQuestion, "Create Copy?")

If you want one at the other end, add one.

ans = MsgBox("Do you want to save a copy of the file as: " & Chr$(10) _
& Chr$(34) & fname & chr$(34), vbYesNo + vbQuestion, "Create
Copy?")



bw wrote:

CODE
fname = "ChkDigitsSent" & Format(Now(), "mm") & Format(Now(), "dd")

&
Format(Now(), "yy") & ".xls"
MsgBox fname ' There is no quote mark displayed here
ans = MsgBox("Do you want to save a copy of the file as: " &

Chr$(10)
&
Chr$(34) & fname, vbYesNo + vbQuestion, "Create Copy?") ' There IS a
quote
mark displayed here (see below)

QUESTION
I'd like to know where the quote mark is coming from as is generated by
the
code above.

MESSAGE BOX
Do you want to save a copy of the file as:
"ChkDigitsSent013005.xls


--

Dave Peterson





Reply
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
Stray mark causing extra page to Print Riccol Excel Discussion (Misc queries) 5 August 25th 09 03:22 PM
Foot mark aka single quote mark? STING Excel Worksheet Functions 3 June 19th 08 08:25 PM
How can I add active tick mark/check mark boxes in excel? gerberelli Excel Discussion (Misc queries) 2 May 3rd 08 05:16 PM
Help - 'finding' a quote mark (") ??? astro_al Excel Programming 2 September 4th 03 03:35 PM
Typing a quote character Vs pasting a quote character= whathappens to the resulting CSV? Interesting!! Jon Peltier[_3_] Excel Programming 0 August 3rd 03 02:22 AM


All times are GMT +1. The time now is 02:25 PM.

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

About Us

"It's about Microsoft Excel"