office-2007

Hiding a sheet in Excel 2007 (with a password) OR hide VBA code in Excel

梦想的初衷 提交于 2019-12-01 20:28:08
I found a way to hide Excel sheets which is as follows: set the visibility of the sheet to VeryHidden in the VBAProject properties and then password protect VBAProject properties. This is great, but in Excel 2007, if you save it as XLSX, the VBAProject password protection is stripped and you can view the VBA code. Is there any way to prevent this? OR, is there any other way to hide an Excel 2007 sheet? Here is what you do in Excel 2003: In your sheet of interest, go to Format->Sheet->Hide and hide your sheet. Go to Tools->Protection->Protect Workbook , make sure Structure is selected, and

Excel Addin that works on Excel 2007 and 2010

安稳与你 提交于 2019-12-01 19:26:06
I'm writing an Excel Addin that should work in both 2007 and 2010. When I create a new project with Visual Studio I need to decide which version I want. I've chosen 2007 before, but since I have 2010 installed I can't debug it. I get an error: You cannot debug or run this project, because the required version of the Microsft Office application is not installed. It is my understanding that if I target 2007 I should be able to run it on both 2007 and 2010. Is that correct? If that's so, can I debug it using 2010? A shared Add-in is made from a Visual Studio project creating a Com Add-In

If I write an add-in for office 2007 will it work for 2010, 2013?

女生的网名这么多〃 提交于 2019-11-30 22:29:41
问题 I am currently in the process of re-writing some VBA macros that were written for office 2003. I was wondering if I wrote a C# add-in for 2007, if it would work for 2010 or maybe even 2013. Or if I wrote them for 2010 if they would work for 2007 and 2013 as well. I currently have access to 2007 but I could get access to 2010 if need be, no 2013 yet. So, basically, how much does the version of office affect the plugins? 回答1: If you use Visual Studio Tools for Office 2010 (VSTO 4.0) then it

nicely reading outlook mailitem properties

天大地大妈咪最大 提交于 2019-11-30 09:59:10
I am writing a plugin for outlook 2007 and i would like to read a property of a MailItem. In particular i'd like to know all the content-types of my attachments. Now the way i do this now is something like this: Outlook.MailItem item = OutlookItem as Outlook.MailItem; Outlook.Attachments itt = item.Attachments; foreach (Outlook.Attachment t in item.Attachments) { textBox1.Text += t.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x370E001F"); } But I would much rather just call something like. t.PropertyAccessor.GetProperty(PR_ATTACH_MIME_TAG); I can't get that later

OpenXML libraries (alternatives to ClosedXML) [closed]

本小妞迷上赌 提交于 2019-11-30 03:39:06
What are some libraries that extend OpenXML (or add a kind of abstraction layer to OpenXML) similar to ClosedXML? I'm looking for a commercial or freeware tool with at least 1.0 version. Thank you in advance. Berat Bilgin Open-Source: Have you looked at EPPlus ? Slogan: Create advanced Excel 2007/2010 spreadsheets on the server. License: GNU Library General Public License (LGPL). I've been evaluating EPPlus, ClosedXML, and SpreadsheetLight over the past week. All three are really great libraries that make working with the extremely convoluted OpenXML a breeze. I've decided to go with EPPlus

excel delete row if column contains value from to-remove-list

…衆ロ難τιáo~ 提交于 2019-11-29 19:44:13
Let's say that I've got a sheet - number one - with over 5000 rows (say, columns ' A ' - ' H ' each). In another sheet - number two - I have a "to-remove-list" - a single column ' A ' with 400 values, each containing alphanumerical string (example: xxx1234). I have to remove every entire row from sheet number one , if column ' E ' contains any value from "to-remove-list" (from column ' A ' of sheet number two ). By removing the entire row, I mean delete the row and move it up (not leaving the blankspace) How do I achieve that? Any help would be much appreciated. Given sheet 2: ColumnA -------

Array from Range in Excel VBA

半世苍凉 提交于 2019-11-29 07:01:29
Well I've been struggling with the little bit of code and can't seem to get around it ... I'm trying to get an array from a range of cells, the array however is showing up to be 1 element wide. Well here's the code: Dim item As Variant MsgBox Range("D19:H19").Count item = Range("D19:H19").Value MsgBox LBound(item) & " " & UBound(item) as per my understanding item should contain a 2D array... however I'm getting the following result 1st MsgBox prints 5 2nd MsgBox prints 1 1 What's going wrong? imfrancisd The problem is in LBound and UBound jtolle was correct about the LBound and UBound. LBound

Get the email address of the current user in Outlook 2007

主宰稳场 提交于 2019-11-29 05:34:20
I have an Outlook add in written in C#. I was wondering how or if I could get the email address of the current user? Thanks Use Namespace.CurrentUser : http://msdn.microsoft.com/en-us/library/bb220041(v=office.12).aspx Tested in VS 2010, .NET 4.0, Outlook 2010: var emailAddress = this.Application.ActiveExplorer().Session.CurrentUser.AddressEntry.GetExchangeUser().PrimarySmtpAddress; Depends on the definition of "the current user address". The address of the primary account in Outlook can be retrieved from Appication.Session.CurrentUser (returns Recipient object). Use Recipient.Address property

OpenXML libraries (alternatives to ClosedXML) [closed]

和自甴很熟 提交于 2019-11-29 01:09:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . What are some libraries that extend OpenXML (or add a kind of abstraction layer to OpenXML) similar to ClosedXML? I'm looking for a commercial or freeware tool with at least 1.0 version. Thank you in advance. 回答1: Open-Source: Have you looked at EPPlus? Slogan: Create advanced Excel 2007/2010 spreadsheets on the

Parsing and generating Microsoft Office 2007 files (.docx, .xlsx, .pptx)

妖精的绣舞 提交于 2019-11-28 18:26:04
I have a web project where I must import text and images from a user-supplied document, and one of the possible formats is Microsoft Office 2007. There's also a need to generate documents in this format. The server runs CentOS 5.2 and has PHP/Perl/Python installed. I can execute local binaries and shell scripts if I must. We use Apache 2.2 but will be switching over to Nginx once it goes live. What are my options? Anyone had experience with this? The Office 2007 file formats are open and well documented . Roughly speaking, all of the new file formats ending in "x" are zip compressed XML