Visual Basic for Applications (VBA)


Add-ins problem in Excel generated by Word Macro


I am using microsoft office word 2003 with SP2 and Microsoft office Excel 2003 with SP2I have Analysis Toolpack , Analysis Toolpack -VBA enabled in my Excel application1. I have written macro in WORD to create and open a new EXCELapplication as bellowSub Macro1()Dim oExcel As Excel.ApplicationDim oBook As Excel.WorkbookDim oSht1 As Excel.WorksheetDim oSht2 As Excel.Worksheet
            Set oExcel = CreateObject("Excel.Application")            oExcel.Visible = True            Set oBook = oExcel.Workbooks.Add            Set oSht1 = oBook.Sheets(1)            Set oSht2 = oBook.Sheets(2)End Sub2. If i go and open the generated EXCEL application and if i try to use DEC2BIN, DEC2HEX, BIN2DEC, BIN2HEX, HEX2BIN, HEX2DEC all these EXCEL add-ins, it doent work and shows #NAME?Ex: in Cell A1   i wrote =DEC2BIN(B1,C1)  where i have B1=255, C1=8Result in A1 is #NAME? that means EXCEL cannot recognize the =DEC2BIN() add-insNote: Analysis toolpack , Analysis Toolpack-VBA is enabled3. Now i disable Analysis toolpack , Analysis Toolpack-VBA add-ins in the excel application and enable it back. Strange thing happens.If i double click the Cell A1 the =DEC2BIN(B1,C1)   formula works fine now.This problem doesnt exisit for the other add-ins like CONCATENATE,RIGHT,LEFT ... Everything works other than above data conversion add-insDid anybody face this problem earlier? Are there any mistakes that i am doing while opening EXCEL application from word macro?please let me know how to overcome this problem in word macro generated Excel applicationthanking you allwith regardsChandranath.M

Related Links

Conditionally formatting a looped range of cells based on value in other cell in VBA
How to get the List of Visible Items from a Pivot Field using VBA
How to run a macro when a Filter is applied on Particular Pivot Field
Add a new property to an existing object
How to Allocate Input Numeric digit to Concerned Numeric header Column
Range referencing in Copy and Paste Formats
VBA6 trouble in WINDOWS 10
VBA dynamic formula reference
Printing Userform
Sorting and selecting cells based off name.
How to tune auto filter option for our need???
VBA Loggin into secure websites
MS Project import of custom field data from Excel resulting in Run-time error 462
How to write a filtered data as a text file using macros???
Block specific site and show custom content?
Need Urgent Help, Plzzzzzz what code add in vba to display a html web link, it should be display in outlook body. not a link should be display as we open in explorer

Categories

MSDN
.NET Framework
Microsoft ISV Communit...
Microsoft Sync Framework
Smart Device Development
Windows Server
Windows Live Developer
Dynamics
Project Server
Unified Communications
Kinect for Windows SDKs
Archived Forums
Announcements for all ...
Suggestions and Feedba...
Visual Studio Editor
Visual Studio LightSwi...
Payouts and Reporting
Windows Desktop Develo...
Windows Desktop Debugging
Windows Imaging Compon...
Windows Desktop Perfmo...
Windows Desktop Pro-Au...
Development with the W...
Developing Apps for Of...
General Office Develop...
SharePoint 2010 - Gene...
SharePoint Legacy Vers...
Pricing & Billing
Azure Networking (DNS,...
Azure HDInsight
Azure Scripting and Co...
Azure DocumentDB
Azure Mobile Engagement
Azure App Service - AP...
Azure Service Fabric
Azure Stack
Azure Database for MySQL
Windows Communication ...
BizTalk Server Adapter...
TPL Dataflow
HealthVault Developer
Microsoft Live Labs Volta
Microsoft Translator D...
SyncFx - General [Read...
SyncFx - Microsoft Syn...
Microsoft Device Emulator
SQL Server Security
Database Mirroring
Standard 7: Servicing ...
Windows Embedded Compa...
Windows Embedded Compa...
SQL Server 2012 PowerP...
SQL Server 2012 Integr...
SQL Server 2012 High A...
Windows Forms General
ClickOnce and Setup & ...
Server Virtualization
MSDN, TechNet and Expr...
Office Live Basics, Es...
SharePoint Server Prot...
Windows File Sharing P...
Exchange Server Develo...
Microsoft Lync Server ...
PivotViewer Control wi...
Search Server: Install...
Project Standard and P...
ADO.NET Entity Framewo...
Announcements about pr...
AppFabric Service and ...
Axum Incubation Project
Building Windows Store...
ISV Community Days
JScript for the .NET F...
Microsoft Unified Comm...
Moderator Posting Only...
Network Quality of Ser...
Regular Expressions
Oracle on Azure
Search Server: Feature...
Search Server: Federation
Server Core Developers
SyncFx - Microsoft Syn...
SQL Server 2014 Integr...
Team Foundation Server...
Visual Basic for Appli...
Visual Basic Interop a...
Visual Basic Power Packs
Visual C++ Express Edi...
Visual Studio Async CTP
Visual Studio Team Sys...
WCF Data Services (Pre...
Web Development in Vis...
Windows CardSpace ('In...
Windows Desktop Vista ...
Windows Live Data Deve...
XNA Framework
Kinect for Windows v2 SDK
Kinect for Windows v1 SDK

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile