office-2010

Calling web service using VBA code in Excel 2010

北战南征 提交于 2019-11-27 18:51:05
I am trying to write some VBA code in Excel 2010 that would consume a web service. I am unable to find any related resources on the internet. Can someone please tell me how to do this. I don't think the post marked as the answer is right - it links to the Excel 2003 solution, which was based on the MS Office Web Services Toolkit. That solution is no longer valid as the Toolkit is not supported any more. See: MSDN - Consuming Web Services in Excel 2007 . The link provides a solution for Excel 2007 which can be transposed to Excel 2010. You will need Visual Studio 2010 with Microsoft Office

Office 2010 server side automation in a Windows HPC Server 2008 R2 Environment

筅森魡賤 提交于 2019-11-27 07:24:13
问题 I am aware of of the infamous Considerations for server-side Automation of Office from Microsoft and it clearly lists products from the 2010 suite. However, today I was made to believe by an IT ops techie that Office 2010 does not suffer from the issues mentioned in that article and can be used without issues within a server environment. I have been unable to find any reference or supporting doc that would substantiate the claim. (I will follow up with him on this, however he must have been

Detect whether Office is 32bit or 64bit via the registry

巧了我就是萌 提交于 2019-11-27 03:11:10
Now that Office also comes in a 64bit install, where in the registry do you find out if the version of Office installed is 32bit or 64bit? Todd Main From TechNet article on 64-bit editions of Office 2010 : If you have installed Office 2010 including Microsoft Outlook 2010, Outlook sets a registry key named Bitness of type REG_SZ on the computer on which it is installed. The Bitness registry key indicates whether the Outlook 2010 installation is 32-bit or 64-bit. This may be useful to administrators who are interested in auditing computers to determine the installed versions of Office 2010 in

c# word interop find and replace everything

隐身守侯 提交于 2019-11-27 01:41:20
问题 I have some code to replace text inside a word 2010 docx. object fileName = Path.Combine(System.Windows.Forms.Application.StartupPath, "document.docx"); Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application { Visible = true }; Microsoft.Office.Interop.Word.Document aDoc = wordApp.Documents.Open(ref fileName, ReadOnly: false, Visible: true); aDoc.Activate(); Microsoft.Office.Interop.Word.Find fnd = wordApp.ActiveWindow.Selection.Find; fnd

Sending Email through Outlook 2010 via C#

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 01:21:10
问题 I am trying to send an email from inside my C# console App. I have added the references and using statements but it seems I have not added everything I need. This is the first time I have ever attempted to do this so I figure there is something I have forgotten. I got this code snippet from the MSDN site http://msdn.microsoft.com/en-us/library/vstudio/ms269113(v=vs.100).aspx Here is the code that I am getting issues with in VS 2010 using System; using System.Configuration; using System.IO;

VBA Pass arguments with .onAction

亡梦爱人 提交于 2019-11-26 21:51:22
问题 this is how my sub looks like: Sub InsertRowWithContent(rowNo As Long) This is my .onAction: .OnAction = "'InsertRowWithContent""" & C & """'" C is a Long variable declared earlier. It says macro not found. It worked fine before adding an argument! 回答1: I have sucessfully passed arguments with this syntax: .OnAction = "=InsertRowWithContent(" & C & ")" Considerations: C is a long. So don't add quotas, just as you wouldn't if you would call the Sub in the code. OnAction evaluates an expression

Calling web service using VBA code in Excel 2010

耗尽温柔 提交于 2019-11-26 15:49:15
问题 I am trying to write some VBA code in Excel 2010 that would consume a web service. I am unable to find any related resources on the internet. Can someone please tell me how to do this. 回答1: I don't think the post marked as the answer is right - it links to the Excel 2003 solution, which was based on the MS Office Web Services Toolkit. That solution is no longer valid as the Toolkit is not supported any more. See: MSDN - Consuming Web Services in Excel 2007. The link provides a solution for

What are the differences between VBA 6.0 and VBA 7.0?

笑着哭i 提交于 2019-11-26 10:26:54
问题 I noticed that Office 2010 comes with Visual Basic for Applications 7.0. However I can\'t seem to find much documentation on what changes were made. Does anyone have a summary of the changes, or any resources describing the differences? 回答1: There's not a whole lot that has changed between VBA6 and VBA7. VBA7 was introduced to support 64-bit versions of both Office and Windows (see below on what those differences are). Here are the key changes: 64-bit support, primarily for API calls . This

Detect whether Office is 32bit or 64bit via the registry

99封情书 提交于 2019-11-26 10:26:47
问题 Now that Office also comes in a 64bit install, where in the registry do you find out if the version of Office installed is 32bit or 64bit? 回答1: From TechNet article on 64-bit editions of Office 2010: If you have installed Office 2010 including Microsoft Outlook 2010, Outlook sets a registry key named Bitness of type REG_SZ on the computer on which it is installed. The Bitness registry key indicates whether the Outlook 2010 installation is 32-bit or 64-bit. This may be useful to administrators