-
Recent Posts
Archives
- January 2020 (4)
- December 2019 (12)
- November 2019 (9)
- October 2019 (12)
- September 2019 (7)
- August 2019 (12)
- July 2019 (12)
- June 2019 (12)
- May 2019 (12)
- April 2019 (12)
- March 2019 (12)
- February 2019 (12)
- January 2019 (12)
- December 2018 (12)
- November 2018 (12)
- October 2018 (15)
- September 2018 (12)
- August 2018 (15)
- July 2018 (11)
- June 2018 (12)
- May 2018 (12)
- April 2018 (12)
- March 2018 (12)
- February 2018 (12)
- January 2018 (12)
- December 2017 (12)
- November 2017 (14)
- October 2017 (12)
- September 2017 (12)
- August 2017 (12)
- July 2017 (12)
- June 2017 (12)
- May 2017 (12)
- April 2017 (12)
- March 2017 (12)
- February 2017 (6)
- January 2017 (14)
- December 2016 (12)
- November 2016 (12)
- October 2016 (12)
- September 2016 (15)
- August 2016 (12)
- July 2016 (17)
- June 2016 (15)
- May 2016 (12)
- April 2016 (14)
- March 2016 (12)
- February 2016 (14)
- January 2016 (17)
- December 2015 (14)
- November 2015 (12)
- October 2015 (20)
- September 2015 (12)
- August 2015 (16)
- July 2015 (22)
- June 2015 (12)
- May 2015 (12)
- April 2015 (12)
- February 2015 (15)
- January 2015 (19)
- December 2014 (14)
- November 2014 (12)
- October 2014 (23)
- September 2014 (20)
- August 2014 (20)
- July 2014 (20)
- June 2014 (24)
- May 2014 (22)
- April 2014 (20)
- March 2014 (21)
- February 2014 (20)
- January 2014 (20)
- December 2013 (20)
- November 2013 (21)
- October 2013 (20)
- September 2013 (38)
- August 2013 (24)
- July 2013 (20)
- June 2013 (21)
- May 2013 (21)
- April 2013 (22)
- March 2013 (7)
- February 2013 (12)
- January 2013 (24)
- December 2012 (19)
- November 2012 (15)
- October 2012 (8)
- September 2012 (19)
- August 2012 (7)
- July 2012 (5)
- June 2012 (19)
- May 2012 (30)
- April 2012 (21)
- March 2012 (65)
- February 2012 (94)
- January 2012 (54)
- December 2011 (17)
- November 2011 (11)
- October 2011 (15)
- September 2011 (39)
- August 2011 (57)
- July 2011 (58)
- June 2011 (65)
- May 2011 (53)
- April 2011 (25)
- March 2011 (12)
- February 2011 (18)
- January 2011 (27)
- December 2010 (2)
- November 2010 (14)
- October 2010 (13)
- September 2010 (1)
- June 2010 (11)
- May 2010 (31)
- April 2010 (29)
- March 2010 (19)
- February 2010 (31)
- January 2010 (28)
- December 2009 (11)
- November 2009 (40)
- October 2009 (2)
- September 2009 (8)
- August 2009 (21)
- July 2009 (21)
- June 2009 (27)
- May 2009 (32)
- April 2009 (24)
- March 2009 (41)
- February 2009 (42)
- January 2009 (34)
- December 2008 (30)
- November 2008 (40)
- October 2008 (42)
- September 2008 (52)
- August 2008 (40)
- July 2008 (35)
- June 2008 (38)
- May 2008 (29)
- April 2008 (32)
- March 2008 (59)
- February 2008 (43)
- January 2008 (47)
- December 2007 (30)
- November 2007 (62)
- October 2007 (54)
- September 2007 (43)
- August 2007 (44)
- July 2007 (55)
- June 2007 (57)
- May 2007 (55)
- April 2007 (43)
- March 2007 (61)
- February 2007 (50)
- January 2007 (21)
- December 2006 (7)
- November 2006 (16)
Categories
- .NET
- Active Directory
- Active Directory administration with PowerShell
- Architecture
- Azure
- Bash
- BITS
- Books
- CDXML
- CIM
- Cloud
- COM
- Containers
- Deep Dive
- Desired State Configuration
- DevOps
- DHCP
- DNS
- DSC
- European Summit
- Events
- Exchange
- File system
- files
- Firewall
- General
- General IT matters
- Hyper-V
- IIS
- IT Community
- IT Security
- Learning Powershell
- Linux
- Math
- Microsoft
- Modules
- Nano server
- Networking
- Office 2010
- Office 2013
- Open Source
- Opinion
- Outlook
- Philosophy
- Powershell
- PowerShell 7
- PowerShell and Active Directory
- PowerShell and CIM
- PowerShell and Exchange 2007
- PowerShell and IIS
- PowerShell and SQL Server
- PowerShell and WMI
- Powershell Basics
- PowerShell User Group
- PowerShell V2
- PowerShell V3
- PowerShell v4
- PowerShell v5
- PowerShell v6
- powershell.org
- PowerShellGet
- PSAM
- Rant
- Registry
- Science Fiction
- Script of the Week
- Scripting
- Scripting Games
- Scritping Games 2014
- Security
- SQL Server
- Storage
- Strings
- Summit
- Technology
- Uncategorized
- Virtualisation
- Walking
- Windows 10
- Windows 7
- Windows 8
- Windows 8 Server
- Windows 8.1
- Windows Server
- Windows Server 1709
- Windows Server 2008
- Windows Server 2008 R2
- Windows Server 2012
- Windows Server 2012 R2
- Windows Server 2016
- Windows Server 2019
- WMFv5
- WPF
- WSH
- WSUS
Meta
Twitter
Tweets by RSiddaway
Category Archives: Office 2013
WMF 5.0 COM applications
One change in WMF 5.0 that I hadn’t got round to testing was the speed up in COM based operations. COM – Component Object Model – was the Microsoft programming model before .NET. Its old but still around – the … Continue reading
Posted in COM, Office 2013, PowerShell v5, WMFv5
Leave a comment
Add a drop down to a Word document
Its surprisingly easy to programatically add a drop down list to Word document $Word = New-Object -Com Word.Application$word.visible = $true$template = “c:\test\template.docx” $Doc = $Word.Documents.Open($template)$Doc.Activate() $cntrl = [Enum]::Parse([Microsoft.Office.Interop.Word.WdContentControlType], “wdContentControlDropdownList”) $objCC = $doc.ContentControls.Add($cntrl) $objCC.DropdownListEntries.Add(“PowerShell”)$objCC.DropdownListEntries.Add(“Ruby”)$objCC.DropdownListEntries.Add(“Perl”) Create the COM object … Continue reading
Posted in Office 2013, Powershell
1 Comment
OneNote and XML–finding pages
Pages are towards the bottom of the hierarchy in OneNote – though we still haven’t dived into the content of pages yet. You can find the pages in your notebooks like this: $onenote = New-Object -ComObject OneNote.Application$scope = … Continue reading
Posted in Office 2013, Powershell
Leave a comment
OneNote and XML–finding sections
I recently showed how to find the names of your OneNote notebooks. The next level down is the section. You can find these sections in a notebook like this: $onenote = New-Object -ComObject OneNote.Application$scope = [Microsoft.Office.Interop.OneNote.HierarchyScope]::hsPages[ref]$xml = ” … Continue reading
Posted in Office 2013, Powershell
Leave a comment
OneNote and XML–finding notebooks
When OneNote first came out there wasn’t an API for it as you get for Word or Excel. A community module enabled you to work with the XML that formed the OneNote note books but it wasn’t updated after Office … Continue reading
Posted in Office 2013, Powershell
1 Comment
Update on Office error
Back in this post https://richardspowershellblog.wordpress.com/2012/10/15/powershell-3-and-word/ I showed that this code $word = New-Object -ComObject “Word.application” $word.visible = $true $doc = $word.Documents.Add() $doc.Activate() $word.Selection.Font.Name = “Cambria” $word.Selection.Font.Size = “20” $word.Selection.TypeText(“PowerShell”) $word.Selection.TypeParagraph() $word.Selection.Font.Name = “Calibri” $word.Selection.Font.Size = “12” $word.Selection.TypeText(“The best … Continue reading
Posted in Office 2013, PowerShell v4, Windows 8.1
Leave a comment
Status of Office software
You can also use the SoftwareLicensingProduct CIM class to test the status of your Office products. Get-CimInstance -ClassName SoftwareLicensingProduct -Filter “Name LIKE ‘Office%’” | where PartialProductKey | select Name, ApplicationId, LicenseStatus You need to be careful with Office as you … Continue reading
Posted in CIM, Office 2010, Office 2013, PowerShell and WMI, PowerShell V3, PowerShell v4
4 Comments
Capacity planning series finished
My capacity planning series on the Scripting Guy blog finished last week. Didn’t get chance to post about it as I was at Microsoft in Seattle. Full series and associated powertip postings: http://blogs.technet.com/b/heyscriptingguy/archive/2013/11/18/powertip-compare-the-contents-of-files-with-powershell.aspxhttp://blogs.technet.com/b/heyscriptingguy/archive/2013/11/18/the-admin-s-first-steps-capacity-planning-part-3.aspx http://blogs.technet.com/b/heyscriptingguy/archive/2013/11/11/powertip-use-powershell-to-format-dates.aspxhttp://blogs.technet.com/b/heyscriptingguy/archive/2013/11/11/the-admin-s-first-steps-capacity-planning-part-2.aspx http://blogs.technet.com/b/heyscriptingguy/archive/2013/11/04/powertip-view-network-statistics-with-powershell.aspxhttp://blogs.technet.com/b/heyscriptingguy/archive/2013/11/04/the-admin-s-first-steps-capacity-planning.aspx Enjoy
Excel–named range
To create a named range in an Excel spreadsheet $xl = New-Object -ComObject ‘Excel.Application’$wkbk = $xl.Workbooks.Add()$sheet = $wkbk.WorkSheets.Item(1)$range = $xl.Range(“A1”, “D4”)$range.Name = “Test” Just to show how to work with named ranges $range2 = $xl.Range(“Test”)$range2.Borders.Color=0$range2.Borders.ColorIndex=26$range2.Borders.Weight=2$xl.visible = $true
Posted in Office 2013, PowerShell V3
Leave a comment
Office365 ate me RSS feeds
Just been puzzling out why I haven’t been getting any RSS feeds for a few days. Looks like when I hooked up my Office365 account to Outlook it took out all the RSS feeds. Fun time to come putting them … Continue reading
Posted in Office 2013
Leave a comment