Ian Beckett

RSS feed

    Recent comments

    Authors

    VBA, How to stop list box activeX control autosize

    Set IntegralHeight property to false...

    ListBox1.IntegralHeight = False

    "An ActiveX ListBox Control has a IntegralHeight Property, which by default is set to True. Go into the Properties Window of the ListBox and set it to False. This should stop the Auto re-sizing. -Dave Hawley "

    http://www.ozgrid.com/forum/showthread.php?t=10568


    Posted by ibeckett on Wednesday, February 10, 2010 7:33 AM
    Permalink | Comments (0) | Post RSSRSS comment feed

    Outlook Social Networking Plugin

    EDIT: With Office 2010, almost all of the best Xobni features have been integrated with Outlook!!!

    http://www.xobni.com/

    This is a cool plugin for Outlook that I heard about from friend at work. It's not new, but it's new to me :)

    Word of warning: it doesn't really work with Office 2010 (yet)...

    Xobni demo video
    A tour of Xobni, a social networking and search plugin for Microsoft Outlook

     


    Posted by ibeckett on Tuesday, July 28, 2009 2:46 PM
    Permalink | Comments (0) | Post RSSRSS comment feed

    Excel Services Compatibility Checker

    One of the annoyances that I have come across in my short time working with Excel Services is the cycle of; change workbook -> publish to share point -> make sure everything works -> repeat.  Today I happened to find a compatibility checker that works extremely well, especially considering that it is in (probably permanent) beta.

    I don't think that I can do a better job explaining how to use it than the author, so just go check out the site!  If you just want to download the installation file, you can get it here.


    Issues that the compatiblity checker knows how to find/fix

    The following is a list of the issues that can be found:

    AutoFix available (all of these will be removed from the workbook when auto-fixed):

    • Comments
    • DialogSheets
    • Display Formulas
    • Macro Sheet
    • OleObjects
    • Query Tables
    • Shapes
    • Validation
    • XML Maps

    AutoFix sometimes available (will be removed if possible):

    • IRM - AutoFix will work if there's no password.
    • Protection - AutoFix will work if there's no password.
    • VBA - AutoFix will work if the trust-cente enables Automation to interact with the VBA project.

    AutoFix will not work for these:

    • Unsupported formulas such as External Workbooks and RTD()
    • FileFormatResult

    excerpt from http://blogs.msdn.com/cumgranosalis


    Posted by ibeckett on Saturday, June 20, 2009 5:01 PM
    Permalink | Comments (0) | Post RSSRSS comment feed

    How do I get row field headings to repeat in a pivot table?

    The VBA script below is really useful if you need to flatten a pivot table output into a regular table with repeating labels.  Select a column, run the macro, and the blanks are filled!

    source http://www.contextures.com/xlfaqPivot.html#Repeat 

    The row headings show once in a Pivot Table, and there's no setting you can change to force them to repeat. To create a table with a heading on each row, you could copy the pivot table, paste it as values in another location, and fill in the blanks, using the technique shown here: http://www.contextures.com/xlDataEntry02.html.

    Fill Blank Cells Programmatically

    If you frequently have to fill blank cells, you may prefer to use a macro. The following code will fill blank cells in the active column:

    Sub FillColBlanks()
    'by Dave Peterson  2004-01-06
    'fill blank cells in column with value above
    Dim wks As Worksheet
    Dim rng As Range
    Dim LastRow As Long
    Dim col As Long

    Set wks = ActiveSheet
    With wks
       col = activecell.column
       'or
       'col = .range("b1").column

       Set rng = .UsedRange  'try to reset the lastcell
       LastRow = .Cells.SpecialCells(xlCellTypeLastCell).Row
       Set rng = Nothing
       On Error Resume Next
       Set rng = .Range(.Cells(2, col), .Cells(LastRow, col)) _
                      .Cells.SpecialCells(xlCellTypeBlanks)
       On Error GoTo 0

       If rng Is Nothing Then
           MsgBox "No blanks found"
           Exit Sub
       Else
           rng.FormulaR1C1 = "=R[-1]C"
       End If

       'replace formulas with values
       With .Cells(1, col).EntireColumn
           .Value = .Value
       End With

    End With

    End Sub


    Posted by ibeckett on Monday, March 09, 2009 2:02 PM
    Permalink | Comments (0) | Post RSSRSS comment feed

    SSRS 2008 Report Builder 2.0

    With Reporting Services 2008 came a new report authoring tool geared towards business & power users.  The tool is called Report Builder 2.0, and is available as a standalone download. I have to say this tool works really well with Analysis Services 2008 cubes. You can browse the cubes just like you do in SQL Management Studio cube browser, and can even view/copy the MDX generated by the designer.  Report Builder has been a nice addition to my toolbox.

    You can download Report Builder 2.0 here: http://www.microsoft.com/downloads/details.aspx?familyid=9f783224-9871-4eea-b1d5-f3140a253db6&displaylang=en

    And here is some good but outdated background info from one of the members of the SSRS team at MS: http://blogs.msdn.com/bwelcker/archive/2007/12/11/transmissions-from-the-satellite-heart-what-s-up-with-report-builder.aspx

    Posted by ibeckett on Thursday, March 05, 2009 3:22 AM
    Permalink | Comments (0) | Post RSSRSS comment feed