Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Save Extension

Hi All,

I have a workbook that has a save function that saves out a certain sheet
and puts a custom extension on it other than "*.xls". However when I put it
on this one computer it puts my extension on and then the ".xls" extension
on. How can I stop this?

Jason
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Save Extension

Jason,
How are you doing you .Save ?
I suspect all computers have the double extension, but because they are set
to hide known extensions, you just don't see it.

NickHK

"Jason Zischke" wrote in message
...
Hi All,

I have a workbook that has a save function that saves out a certain sheet
and puts a custom extension on it other than "*.xls". However when I put

it
on this one computer it puts my extension on and then the ".xls" extension
on. How can I stop this?

Jason



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Save Extension

Hi NickHK

Thanks for the reply, but I think I need o explain this better. What happens
is when excel saves it adds on the *.xls extension which when my custom open
dialog is used it doesn't show them it only looks for my custom extensions
which are *.Quote, *.Contract & *.Eti, my code is shown below.

FileSaveName = QuoteNumber & CustomerName & AccountName & ".Quote"

ActiveWorkbook.SaveAs FileName:=FileSaveName, FileFormat:=xlNormal,
WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False

Jason


"NickHK" wrote:

Jason,
How are you doing you .Save ?
I suspect all computers have the double extension, but because they are set
to hide known extensions, you just don't see it.

NickHK

"Jason Zischke" wrote in message
...
Hi All,

I have a workbook that has a save function that saves out a certain sheet
and puts a custom extension on it other than "*.xls". However when I put

it
on this one computer it puts my extension on and then the ".xls" extension
on. How can I stop this?

Jason




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Save Extension

Jason,
AFAIK, you cannot achieve this in a single step.
You actually want the file to be in XL format, but with your custom
extension ?
So .SaveAs normally, close the WB (or use .SaveCopyAs) the rename the file.

Name MyFile.xls As MyFile.Quote
using the full path as applicable, on a closed WB.

NickHK

"Jason Zischke" wrote in message
...
Hi NickHK

Thanks for the reply, but I think I need o explain this better. What

happens
is when excel saves it adds on the *.xls extension which when my custom

open
dialog is used it doesn't show them it only looks for my custom extensions
which are *.Quote, *.Contract & *.Eti, my code is shown below.

FileSaveName = QuoteNumber & CustomerName & AccountName & ".Quote"

ActiveWorkbook.SaveAs FileName:=FileSaveName, FileFormat:=xlNormal,
WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False

Jason


"NickHK" wrote:

Jason,
How are you doing you .Save ?
I suspect all computers have the double extension, but because they are

set
to hide known extensions, you just don't see it.

NickHK

"Jason Zischke" wrote in

message
...
Hi All,

I have a workbook that has a save function that saves out a certain

sheet
and puts a custom extension on it other than "*.xls". However when I

put
it
on this one computer it puts my extension on and then the ".xls"

extension
on. How can I stop this?

Jason






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
Excel changes file extension on embedded object upon save Brent-GPTX Excel Discussion (Misc queries) 1 April 24th 09 05:23 PM
Default Save Extension ---Fitz--- Excel Discussion (Misc queries) 0 July 22nd 08 06:07 PM
How can I save a file in Excel 2007 beta 2 as a .dbf extension? Darren Crewes Excel Discussion (Misc queries) 1 June 3rd 06 11:31 PM
Additional file with no extension created during File Save As proc Peter Rooney Excel Discussion (Misc queries) 2 August 11th 05 02:48 PM
auto save with variable name with html extension Jason[_29_] Excel Programming 0 May 25th 04 03:40 AM


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

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"