ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Mysterious " " in SaveAs Dialog Box (https://www.excelbanter.com/excel-programming/331917-mysterious-saveas-dialog-box.html)

Mike

Mysterious " " in SaveAs Dialog Box
 
Code is as follows
sStr = "S:\Orders\" & Range("C4") & ".xls"
Application.Dialogs(xlDialogSaveAs).Show sStr


Assume C4 describes me... The Save As Dialog box pops up (like it shoud),
the File Name Text Box Has the words: Mike is an Idiot.xls (Like it should),
but Mike is an Idiot is in quotation marks like this:
"Mike is an Idiot.xls"

The quotes aren't there in C4 but they appear in the SaveAs Dialog box.
Why? Does it matter? What could it affect? How do I get Rid of them? DEATH
TO THE QUOTES!!!!

-Mike


bhofsetz[_21_]

Mysterious " " in SaveAs Dialog Box
 

I couldn't reproduce your error.
How do you have sStr declared?


--
bhofsetz
------------------------------------------------------------------------
bhofsetz's Profile: http://www.excelforum.com/member.php...o&userid=18807
View this thread: http://www.excelforum.com/showthread...hreadid=379527


Vasant Nanavati

Mysterious " " in SaveAs Dialog Box
 
Look at my response in .worksheet.functions.

--

Vasant

"Mike" wrote in message
...
Code is as follows
sStr = "S:\Orders\" & Range("C4") & ".xls"
Application.Dialogs(xlDialogSaveAs).Show sStr


Assume C4 describes me... The Save As Dialog box pops up (like it shoud),
the File Name Text Box Has the words: Mike is an Idiot.xls (Like it

should),
but Mike is an Idiot is in quotation marks like this:
"Mike is an Idiot.xls"

The quotes aren't there in C4 but they appear in the SaveAs Dialog box.
Why? Does it matter? What could it affect? How do I get Rid of them?

DEATH
TO THE QUOTES!!!!

-Mike




jmoffat[_16_]

Mysterious " " in SaveAs Dialog Box
 

I got the same issue and posted a similar question in theis forum

The only way I found to get around it is to use the sendkeys option
with the file name you want to save.


--
jmoffat
------------------------------------------------------------------------
jmoffat's Profile: http://www.excelforum.com/member.php...fo&userid=1151
View this thread: http://www.excelforum.com/showthread...hreadid=379527



All times are GMT +1. The time now is 07:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com