Skip to content
April 21, 2013 / Erik Svensen

Design a metro style dashboard in Excel

Yesterday I presented at SQL Saturday Copenhagen #196 how to create a Metro Style Dashboard using Microsoft Excel 2013 and PowerPivot.

I made this using standard Excel functionality and with no use of VBA, and heavy use of the CUBE functions to retrieve values from the datamodel.

As promised I have uploaded a copy of the model to Skydrive – Link

My presentation can be downloaded from Link

The macro to hide the Excel look is as follows – place it in your Personal Macro Workbook

Sub TurnExcelOff(bolState As Boolean)

Application.DisplayFormulaBar = bolState

Application.DisplayStatusBar = bolState

With ActiveWindow

.DisplayVerticalScrollBar = bolState

.DisplayWorkbookTabs = bolState

End With

With ActiveWindow

.DisplayGridlines = bolState

.DisplayHeadings = bolState

End With

End Sub

Sub ExcelOn()

TurnExcelOff True

End Sub

Sub ExcelOff()

TurnExcelOff False

End Sub

If you have any questions please feel free to comment on this post and I will try to answer.

PS – Thanks to all the people that arranged a great SQL Saturday event #196 in Copenhagen.

Advertisements

3 Comments

Leave a Comment
  1. Mikkel / Apr 22 2013 11:34 am

    Thanks for a great presentation, playing around with the demo sheet as i write this.

    Is there a way to also remove / hide the excel ribbon in the macro?

    • Erik Svensen / Apr 22 2013 11:47 am

      Hi Mikkel,

      Glad you liked it – you can hide the ribbon using

      CTRL+F1 or

      Application.ExecuteExcel4Macro “SHOW.TOOLBAR(“”Ribbon””,False)”

      /Erik

Trackbacks

  1. SQLSaturday Copenhagen re-cap | T-SQL.dk

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: