Any Excel Guru's ? I have an automation Problem

jkpd2000

Board Regular
Joined
May 8, 2002
Messages
91
Hi All,

Can anyone solve this problem.

I have an automated program that generates 5 text files every day from oracle.

Now i want an automation for those 5 five files to be picked up and transferred into excel spread sheets without my interaction.

In that i have some columns to be made some formatting. And while saving the files it should append the date stamp to the filename.

Is this possible ? If so can any one help me?
If so i will be glad to give more info.

Any help would be appreciated.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Why not get an OBDC connection between excel and your DB and import it directly instead of sending it to text first ?
In other words use the excel sheet as your front end.
 
Upvote 0
Can you tell me how to do that way, as it should run daily without my intervention.

the filenames should be datestamped everyday.

And how to get an odbc connection, can you help me. thanks in advance.
 
Upvote 0
You have made four posts in a little over 1 hour!!! And you have nearly dismissed the one answer already provided.

Please show some patience.

You might also be able to achieve your ends by running a macro at a set time and do something like the following (untested):

'-------------
Sub test()
Dim strFileName

Workbooks.OpenText FileName:="Extended Name of your file", Origin _
:=xlWindows, StartRow:=1, DataType:=xlDelimited, TextQualifier:= _
xlDoubleQuote, Tab:=True, FieldInfo:=Array(1, 2)

strFileName = Left(ActiveWorkbook.Name, _
Len(ActiveWorkbook.Name) - 4) & Format(Date, "mmddyyyy")

' do your stuff

With ActiveWorkbook
.SaveAs FileName:=strFileName, FileFormat:=xlNormal
.Close
End With
End Sub
'---------------------

You will do something like this for all your files.

HTH,
Jay
This message was edited by Jay Petrulis on 2002-05-09 16:13
 
Upvote 0
Thanks Jay.

But i dont know where to put this code and how to run it. can you please tell me step by step.

thanks in advance
 
Upvote 0

Forum statistics

Threads
1,213,561
Messages
6,114,312
Members
448,564
Latest member
ED38

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top