hi,
I use a tool called impact360 to generate excel reports that I work from,when a report is run i choose the option "excel 2000 output", so the file is generate as an excel file.
I have recorded some code with the generated report visible.
that is all the coding that is generated. this is fairly basic and can be trimmed, this is not what the problem is.
I have saved this in my personal addin as
this code is loaded into my right click menu - so i can access it in the ie window, the right click menu appears, but does not do anything/or work.
anyone else done this and got it to work.
Hope this is of use, Rob.![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)
I use a tool called impact360 to generate excel reports that I work from,when a report is run i choose the option "excel 2000 output", so the file is generate as an excel file.
I have recorded some code with the generated report visible.
Code:
Range("B9").Select
ChDir "U:\Private\Temp\Impact 360 Exports"
ActiveWorkbook.SaveAs Filename:= _
"U:\Private\Temp\Impact 360 Exports\13.12.08.xls", FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
ActiveWorkbook.Close
ActiveWorkbook.Close
ActiveWindow.Close
that is all the coding that is generated. this is fairly basic and can be trimmed, this is not what the problem is.
I have saved this in my personal addin as
Code:
Dim ddate As Date
If Range("a2").Value = "Planned Activity Cost (Unburdened) " Then
Range("b6").Formula = "=LEFT(TRIM(RIGHT(TRIM(B1),LEN(TRIM(B1))-FIND("": "",TRIM(B1)))),FIND("" "",TRIM(RIGHT(TRIM(B1),LEN(TRIM(B1))-FIND("": "",TRIM(B1)))))-1)"
ddate = Range("b65536").End(xlUp).Value - 1
Range("A5").Select
ActiveWorkbook.SaveAs FileName:= _
"U:\Private\Temp\Impact 360 Exports\" & Format(ddate, "dd.mm.yy") & ".xls", FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
ActiveWorkbook.Close
ActiveWorkbook.Close
Else
ddate = Range("b65536").End(xlUp).Value - 1
ActiveWorkbook.SaveAs FileName:= _
"U:\Private\Temp\Impact 360 Exports\adh " & Format(ddate, "dd.mm.yy") & ".xls", FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
ActiveWorkbook.Close
ActiveWorkbook.Close
End If
this code is loaded into my right click menu - so i can access it in the ie window, the right click menu appears, but does not do anything/or work.
anyone else done this and got it to work.
Hope this is of use, Rob.
![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)