i have tried everything i could think of but cannot get the data to show in column A of the excel spreadsheet. works fine if i do it manually via the data view dialog box but not when scheduled automatically in BCA or via a macro.
this is a ridiculous thing to be wasting my time on and the solution is probably something simple. any ideas?
If your 1st column has heading of the data available for the data, then make sure that you select the option first row contains header in the data provider.
Thanks but thatās not the issue. Header and all rows show up fine but the first data COLUMN shows up in column B of the spreadsheet. The whole data grid is one column to the right.
I have been reading around for a while, looked at a business objects document āBest Practices when exporting to excelā but I really can find no solution to the first blank column.
tired page setup, tried moving margins in page layoout, tried table format (setting to zero)ā¦
any solution??
I am on BO 6.1b and have used it for 3 years, so I am pretty comfortable with the tool.
If you are saving as Excel then forget about page setup; the whole issue is the positioning of the table.
Get rid of page layout view and have a look at the table. If it is not in the top left corner then it needs to be. If it is, then check the buglist on the BO website as this may be a glitch in 6.1b
Iāve not had any problems in 6.5.1 with being about to do this.
Blank rows and columns are generated because the table is not aligned correctly to the Section. Iāve resolved this by aligning tables to be Horizontally and Vertilcally aligned to 0 pts away from the section, or aligned directly to one of the Margins.
Same problem here. Save as excel saves data from to cell B2 not to A1 as it should do. Table format Appearance tab: Horizontal position Relative set to: Right margin, Vertical Position Relative set to: Top margin. Save as excel, open it in excel and top row and first column are left blank in excel.
BO versions 651 and 652.
The solution is really easyā¦
As you are using a macro, you can write a 4 line query to
delete column A and Row 1 whenever the report runs.
The code may be as below:
Sub DelRowCol()
xlsApp.Rows(ā1:1ā).Select
xlsApp.Selection.Delete Shift:=xlUp
xlsApp.Columns(āA:Aā).Select
xlsApp.Selection.Delete Shift:=xlToLeft
xlsApp.ActiveWorkbook.Save
End Sub
I too had a similar issue, but found a way to work around it using VBA. When i send to BCA I execute a macro that first creates a .XLS file, then reopens it in the background and I then use Excel VBA to delete the first column & first row (as both were blank in my situation).
Iāve just taken SP2 and Feb 2006ās hot fix updates; this has inflicted the bug upon me. Does anyone know which particular patch needs to be reversed? I really that itās not the one to fix what I took the patch for in the first place.
This behavior was by design in 6.x FullClient Excel export. Not a bug.
It is changed in XI R2. Reports exported as Excel (I am talking about the SaveAs feature, not the cube export from the data manager dialog) now donāt offset everything by one row and one column anymore.
There are two workarounds for 6.x :
use a post-processing routine, such as the written in VBA above. In essence, you can start an Excel instance, load the .xls document, remove the row and column, and save it.
export the report as Html and reopen it in Excel 2000, XP or 2003. Opening the Html report in Excel can also be achieved with some VBA code.
Well itās certainly not the way that it worked in 6.5.1 which I was happy with. If I wanted an offset, Iād have set an offset on my table.
Iām not a VBA coder, Iām a Data Warehouse Developer.
I donāt want to be a VBA coder.
Very poor decision imo.
It feels like BO are turning into Microsoft and presuming to know what we want rather than actually asking us. Leaving row 1 and column A blank are slack - thatās what my page margins are for. There should at least be an option within the āSave As Excelā functionality.
As for the macro solution, how would that work in an environment where macro security is high and itās distributed via email?
It doesnāt take a degree in programming to write a VBA macro or any automation code that does what said above. As for macro security, you can actually embed that macro right inside the .rep document if that helps. In other words, you donāt need to run this from outside.
Also, I think you could ask BO support if the removal of the Excel row/column offset can be backported to 6.x. If you donāt ask, you can be sure it wonāt happen.
I took SP2 and the patch to fix the bugs that SP2 introduced ( ) and Iāve asked them to establish what needs to be removed to get back the buggy utopia of sticking the report in A1.
As for the .rep VBA process, I certainly havenāt got the time let alone the inclination to insert and maintain VBA routines in the 150 reports that weāve already built. VBA doesnāt look particularly difficult and I can make sense of it, but itās not something that I particularly want to add to my skill set. Not because I donāt think itās worth having, purely because itās not a direction that I want my career to go in.
Someone from BO support told you that a combination of the above would remove the row/col offset? Iāll repeat myself, this is not a bug, it is by design and I only made the change in XI R2 (once I was still working there last year).
You can always ask BO support to backport the changes to 6.x, but I would be surprised that theyāve made the change purposedly already.
I get the idea, but there is nothing stopping you from doing a bulk Excel reopen/resave in a simple loop. Actually there is a number of such code snippets available in this website, in the VBA section.