I am not stuck, the marco i did runs but the problem is on how to run the marco for daily. i need to change the date every day. so some thing like a prompt asking for a certain date would help.
please see the code below.
Sub t()
'
MsgBox "Please change the dates 10 times (6 times for the original report file, 3 times for sheets and 1 time for the actual work book file"
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\..\S_07Oct2008.csv" _
, Destination:=Range("A1"))
.Name = "S_07Oct2008"
\
\
code to change from .csv to .xsl
\
\
End With
Columns("B:F").Select
Selection.ClearContents
Columns("G:Z").Select
Selection.Cut Destination:=Columns("B:U")
Range("A1").Select
Sheets("Sheet1").Select
Sheets("Sheet1").Name = "S Oct 1 2008"
Sheets("Sheet2").Select
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\..S_07Oct2008.csv" _
, Destination:=Range("A1"))
.Name = "b_S_07Oct2008"
\
\
code to change from .csv to .xsl
\
\
End With
Columns("C:C").Select
Selection.ClearContents
Columns("D:Z").Select
Selection.Cut Destination:=Columns("C:Y")
Range("A1").Select
Sheets("Sheet2").Select
Sheets("Sheet2").Name = "B Oct 1 2008"
Sheets("Sheet3").Select
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\..\u_S_07Oct2008.csv" _
, Destination:=Range("A1"))
.Name = "u_S_07Oct2008"
\
\
code to change from .csv to .xsl
\
\
End With
Columns("G:G").Select
Selection.ClearContents
Columns("H:Z").Select
Selection.Cut Destination:=Columns("G:Y")
Columns("G:Y").Select
Range("A1").Select
Range("A1

10000").Sort Key1:=Range("D2"), Order1:=xlAscending, Key2:=Range _
("B2"), Order2:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase _
:=False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal, _
DataOption2:=xlSortNormal
Selection.EntireColumn.Insert
Columns("E:E").Select
Selection.Cut Destination:=Columns("A:A")
Columns("F:Y").Select
Selection.Cut Destination:=Columns("E:X")
Columns("E:X").Select
Range("A1").Select
Sheets("Sheet3").Select
Sheets("Sheet3").Name = "U Oct 1 2008"
Range("A1").Select
ChDir _
"C:\..\A p"
ActiveWorkbook.SaveAs Filename:= _
"C:\..\A p\ACA S October 01 2008.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
End Sub
Above is the code.
I have included the msgbox which says i need to change the date 10 times.
but when i click the ok button in the msgbox, it still runs the macro. what i need it a promt which asks to change the date and it replaces 10 times in the macro and runs it accordigly to that date.
I hope this helps u understange my req.
Thanks in advance