Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 203
Default Protect file name

Good day all, i need to send a file retrieved from SAP and send it to a
supplier with the following format: 720_1234567_091005_I.xls

720 = the buyer number (Variable)
1234567 = Vendor number (Variable)
091005 = Date (Variable)
I = Input (Static)

The numbers and date are variable per download from SAP.

I need to keep the file name exactly as it is, could somebody please
help in advising if it is possible to do with code and how to do it.


thanks in advance.

regards,

Tempy

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default Protect file name

looks like you just need to construct a string, then save as (unless teh data
and input are real time adjustments?

dim myName as string
myname = ""
myname = Cstr(buyernumber) & "_" & Cstr(Vendornumber) & "_" &
cstr(date) & "_" & cstr(input) &".xls"

' add path info as needed
'myname = "PAthinformation" & myname

myfile.saveas Filename:=myname

"Tempy" wrote:

Good day all, i need to send a file retrieved from SAP and send it to a
supplier with the following format: 720_1234567_091005_I.xls

720 = the buyer number (Variable)
1234567 = Vendor number (Variable)
091005 = Date (Variable)
I = Input (Static)

The numbers and date are variable per download from SAP.

I need to keep the file name exactly as it is, could somebody please
help in advising if it is possible to do with code and how to do it.


thanks in advance.

regards,

Tempy

*** Sent via Developersdex http://www.developersdex.com ***

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 203
Default Protect file name

Thanks Vacation's Over, sorry for the time delay....due to different
time zones


Tempy

*** Sent via Developersdex http://www.developersdex.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
protect a file from deletion SheriTingle Excel Discussion (Misc queries) 2 January 5th 06 01:32 AM
Password Protect CSV File Jasmine Excel Discussion (Misc queries) 3 September 21st 05 04:34 PM
Protect File Saved maperalia Excel Programming 4 September 14th 05 05:31 PM
password protect .csv file Jennifer Boe Excel Discussion (Misc queries) 1 June 1st 05 05:16 PM
can we password protect a .csv file? Lakshmi Excel Discussion (Misc queries) 1 January 4th 05 08:15 PM


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