VB/VBA and Cookies within MS Word

Posted on 2004-11-16
Last Modified: 2006-11-17
Have created a cookie with ASP in a browser and now require the number stored in that cookie to be retrieved by MS Word.

How is this possible?   Using request.cookies does not work with an Object Required error being produced.


Question by:justinkent
    LVL 9

    Accepted Solution

        This may help (they are VB, but should work in VBA too)


    Author Comment

    Thanks, will check them out over the next few days and come back to you.

    This is the preferable way I wish to do this - I have worked another around the problem which is to get ASP to collect the user's IP address and dump it in the DB with the number required, and then get the VBA app gets the user's IP address and then go to the DB to collect the number. As this will only ever run on an enclosed intranet, there will never be a case of duplicate IP's.

    Anyway, as said - will try them out in a VBA environment.


    Author Comment

    The code at at the worked, finally, after a bit of playing around at this end!


    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now