Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
protect a file from deletion | Excel Discussion (Misc queries) | |||
Password Protect CSV File | Excel Discussion (Misc queries) | |||
Protect File Saved | Excel Programming | |||
password protect .csv file | Excel Discussion (Misc queries) | |||
can we password protect a .csv file? | Excel Discussion (Misc queries) |