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

Hello all!

A quick question. I was trying to save a worksheet ina workbook in
certain format. I tried the following two ways.

ActiveSheet.SaveAs FileName:=filesaveName, FileFormat:=xlText
ActiveSheet.SaveAs FileName:=filesaveName, FileFormat:=xlTextWindows

I was wondering what is the difference between the two fileformat
here? Apparantly both work well.

Thanks a bunch.
Regds,

Arun. Iyer
Vtec Cor

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default File Formatting!

xlText is not a valid FileFormat enumerator. That's actually a pivottable constant. Coincidentally the value of the xlText constant is the same as that of the FileFormat xlCurrentPlatformText constant

I'm sure the property of FileFormat has a function to determine which platform you're running, and finds out that you're using Windows. So xlTextWindows and xlCurrentPlatformText should ultimately give you the same result. But you should use xlTextWindows as it's probably faster

-Brad Vontur
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default File Formatting!

xlText is certainly a valid FileFormat enumerator. It may not be in the
current listing in help, but the current listing didn't have the fancy names
until xl97. Before then it was simply xlText. Obviously the numerical
value is what is actually used and as you stated, they are the same.

Just to elaborate, recording a macro records:

ActiveWorkbook.SaveAs Filename:="C:\Book4.txt", FileFormat:=xlText, _
CreateBackup:=False


Similar before xl97:
? xlPasteFormulas
-4123
? xlFormulas
-4123
? xlPasteSpecialOperationAdd
2
? xlAdd
2

and the list goes on and on.
--
Regards,
Tom Ogilvy

"Brad Vontur" wrote in message
...
xlText is not a valid FileFormat enumerator. That's actually a pivottable

constant. Coincidentally the value of the xlText constant is the same as
that of the FileFormat xlCurrentPlatformText constant.

I'm sure the property of FileFormat has a function to determine which

platform you're running, and finds out that you're using Windows. So
xlTextWindows and xlCurrentPlatformText should ultimately give you the same
result. But you should use xlTextWindows as it's probably faster.

-Brad Vontur



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default File Formatting!

Thanks alot Brad. That helps.

Arun...

--
Message posted from http://www.ExcelForum.com

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
Formatting .txt File Gator Excel Discussion (Misc queries) 1 October 4th 07 08:47 PM
Re-formatting when saving as HTM file. Brett K Excel Discussion (Misc queries) 1 November 7th 06 04:41 PM
Is it possible to link cell formatting in Excel from file to file KimW Excel Discussion (Misc queries) 4 August 17th 06 07:03 PM
Formatting of Data from .CSV file Night Owl Excel Worksheet Functions 0 May 10th 05 05:40 PM
File formatting! aiyer[_2_] Excel Programming 2 February 18th 04 01:42 AM


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