LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Saving a column of data in another file format

Help on worksheet functions in the VBE are, as you observed, using the same
file as in Excel itself. so there is no specific help on using individual
worksheet functions in VBA.

Regards,
Tom Ogilvy

"Hari Prasadh" wrote in message
...
Hi Tom,

Thnx for the reply.

You would probably have no knowledge that xlTextMSDos even existed as a
constant.

I agree with that statement fully. Actually many times what happens is I
might have only a faint idea of a particular keyword/concept (Like I might
come across a new keyword/concept in NG post or some website or through
personal experimentation). In order to get a better idea of the same I

would
go to help. But it seems to be a catch-22 situation. In order to use Help
better you first need to have an idea of that so and so is part of a

bigger
concept/keyword (Like Save As is parent of Xltextmsdos). What Help assumes
is that one is privileged to know about Child, only if one knows about the
parent, or one follows the path through parent. This is somewhat alien to
me. Havent the MS folks created a Complete INDEX of all the words

(excluding
a, an, the etc) within Help?

To illustrate my point let me tell u this. Sometime back I was
programmatically opening a text file in XL and then saving it as a normal

Xl
file (I have pasted that code at the end). This I did through macro
recording. When i examined the code it showed me that -- Xlnormal -- is

the
syntax for saving a nonXL kind of file as XL.

Now, I wanted to learn more about this. So I typed --- xlnormal -- in Help
and I got the standard -- Please rephrase your question. What I want to

say
from this is that in this case I was aware to a certain extent about the
Child, which is --- xlnormal -- but Help doesnt let me directly *google*

it.
Seeing from the result I thought that probably --Xlnormal -- is not
documented in Help.

To add to the above I also couldnt understand that if I access Match
Function in VBA help, the same write-up comes up as in Excel Help. As far

as
I understand when Match is to be used within VBA then one uses
Application.worksheetfunction.Match (please correct me if am wrong) , so
shouldnt the examples documented for match function within VBA help be
presented in a way which is suitable to the way we use it in VBA.

I will start getting used to Object browser. As compared to help I find
those things a little sophisticated, not comfortable - but as they say....
If I use it a few times then the interface would seem a little more
intuitive.

Regards,
Hari
India


Sub RenamingLSTasXLS()

Workbooks.OpenText Filename:= _
"C:\Documents and Settings\abc\Desktop\Automate\Dev\From

Client\Raw
Data\week 1\dev11112.lst", Origin:=437, StartRow _
:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=False, Tab:=False, Semicolon:=False,
Comma:=False _
, Space:=False, Other:=False, FieldInfo:=Array(1, 1), _
TrailingMinusNumbers:=True

Application.DisplayAlerts = False

ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\abc\Desktop\Automate\Dev\Working
Files\Renaming\dev11112.xls", FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False

ActiveWorkbook.Close
Application.DisplayAlerts = True
End Sub




 
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
Saving in new file format moon Excel Discussion (Misc queries) 2 November 11th 09 06:12 PM
Saving File Format Raz Excel Worksheet Functions 2 November 27th 08 05:32 PM
Cell changes format upon saving file victorsm Excel Discussion (Misc queries) 3 November 13th 08 03:50 AM
Saving file in CSV format meeta das Excel Discussion (Misc queries) 2 February 15th 06 12:41 PM
Saving file to *.prn format JON JON Excel Programming 12 December 2nd 04 12:08 PM


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