LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving different files based upon data in particular column


Instead of posting my code I just made a different macro for the tx
files. So, now I have two. No big deal and I don't have to bother yo
guys so much. LOL Thanks for the help.

Ron de Bruin Wrote:
You close it after saving it to a xls
WBNew.Close False


Then you run this code

Columns("A:C").Delete
Columns("A:A").Insert
Columns("N:N").Copy _
Destination:=Range("A1")
Columns("N:N").ClearContents

Columns("C:AA").Delete
Columns("A:B").EntireColumn.AutoFit
Range("A1").Select


You run this on the activesheet on that moment

Then you want to save as a txt file and WBNew is closed so that is no
possible

Copy your whole macro in this thread then i change it for you



--
Regards Ron de Bruin
http://www.rondebruin.nl


[/color


--
DK
-----------------------------------------------------------------------
DKY's Profile: http://www.excelforum.com/member.php...fo&userid=1451
View this thread: http://www.excelforum.com/showthread.php?threadid=39247



 
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
Merge two files based on one column Marc Excel Discussion (Misc queries) 0 January 3rd 10 06:53 AM
Excel saving pivot table and data as html files [email protected] Excel Discussion (Misc queries) 1 December 13th 07 06:47 PM
How do I avoid saving multiple data files for versioning purposes. [email protected] Excel Discussion (Misc queries) 1 December 13th 04 12:57 PM
Parse database into several files based on column D Steph[_3_] Excel Programming 3 September 28th 04 03:01 AM
Data files are corrupt after saving from VBA - Excel 2000 Raymond Allan Excel Programming 7 July 8th 04 12:56 PM


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