Hi Friends,
I Need to Open an Excel file (.CSV Format file) based on Prefix Name "Rawdata" (Todaydate)" - Where Today date will be changed on daily basis.
Select all data Copy and paste it in New excel file.
Now need to delete specific columns "Model Desc" and "Product Desc" - Please help me.
With Regards,
Aswinraj A
I Need to Open an Excel file (.CSV Format file) based on Prefix Name "Rawdata" (Todaydate)" - Where Today date will be changed on daily basis.
Select all data Copy and paste it in New excel file.
Now need to delete specific columns "Model Desc" and "Product Desc" - Please help me.
Code:
[/FONT][/COLOR][COLOR=#252C2F][FONT=Courier]Sub Macro1()[/FONT][/COLOR]
Application.DisplayAlerts = False
Dim rng As Range
Set TodayDShip = Workbooks.Open("C:\Users\aasw\Desktop\DShip\Rawdata.csv")
Set rng = Sheet1.Range("A1:BB1").Find(What:="Model Desc", _
LookAt:=xlWhole, MatchCase:=False)
If Not rng Is Nothing Then
rng.EntireColumn.Delete
End If
End Sub[COLOR=#252C2F][FONT=Courier]
[/FONT][/COLOR][COLOR=#252C2F][FONT=Helvetica]
With Regards,
Aswinraj A