LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Saving multi-tab excel file created from comma delimited text file

I am importing a csv and doing a bunch of data manipulation until I end up
with a worksheet with 6 tabs. My code had stopped there previously and I
would manually File=SaveAs and change the type to .xls. This worked fine.
Now, I need to copy the file from my local machine and send it to a few
network locations which I don't want to do manually. Well, when I tried to
have VBA save the worksheet and close it with something like this:
Loc1 = "MASTER" & " " & Today & ".XLS"
Set MasterBook = ActiveWorkbook
With MasterBook
.SaveAs Filename:=Loc1
End With
Workbooks(Loc1).Close SaveChanges:=True
The file gets saved as a text file and I lose all my tabs. How can I have
the file saved as an excel file and not a text file? I both need and
appreciate any help. Thanks.

 
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
Comma Delimited, saving of records - CSV File Paul Bytes Excel Discussion (Misc queries) 1 January 26th 07 01:55 PM
How to produce comma-delimited and quoted text file from Excel? Roger Kenner Excel Discussion (Misc queries) 1 September 15th 05 07:19 PM
How can I save a file as a comma-delimited text file in Excel? LAM Excel Discussion (Misc queries) 1 May 3rd 05 10:24 PM
I have a Comma delimited text file how do I import in to excel an. trevord Excel Discussion (Misc queries) 1 February 3rd 05 11:41 PM
Comma Delimited Text File Issue solomon_monkey Excel Programming 12 December 22nd 04 09:51 PM


All times are GMT +1. The time now is 08:48 AM.

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"