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: 1
Default Exporting to a .txt file - VBA Code


Hi Everyone - Need some help after a very tedious attempt with no luck -
Am a novice :-(

I have attached the .xls worksheet.

I am having problems trying to write code that will automate the
selection of a path selection for saving the file when the user click
on step 2 in the file.

the code at the moment, when you run the macro will ask the user to
enter their choice of where they want the file saved, but I don’t want
the user to choose. I just want the file saved to a path name that is a
combination of certain cells i.e. cell A1 = QLD, D3 = 3636125, H3 =
Promo851, so the file will be saved to c:/3636125QLDPromo851.txt.

Every time the user uses the worksheet different data is input, so each
time the user saves it, it will save to a different file name.

Any help on this would be great!! The file I have so far is some that I
source from the web.

cheers
Gavin


+-------------------------------------------------------------------+
|Filename: NEW NEW Template.zip |
|Download: http://www.excelforum.com/attachment.php?postid=3834 |
+-------------------------------------------------------------------+

--
gavsta
------------------------------------------------------------------------
gavsta's Profile: http://www.excelforum.com/member.php...o&userid=23390
View this thread: http://www.excelforum.com/showthread...hreadid=468463

 
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
Error Code 1004 when exporting from VB app to Excel 2007 sue mac Excel Discussion (Misc queries) 0 September 11th 07 08:10 AM
Exporting to CSV file Paul Bytes Excel Discussion (Misc queries) 1 January 3rd 07 04:21 PM
Exporting a PDF file monkster Excel Discussion (Misc queries) 0 May 2nd 06 08:18 PM
Exporting CSV file to unicode .txt file - " around strings Paul Excel Discussion (Misc queries) 1 June 14th 05 12:27 AM
Exporting Excel VB code Leo Excel Programming 2 December 3rd 03 09:48 PM


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