web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

MSCRM and connectivity using excel MACRO or VBA code

(0) ShareShare
ReportReport
Posted on by 6

Hi All Experts,

I have a requirement where i need to fetch the data directly from the CRM to excel sheet using MACRO or VBA code.

Is there anything that we can utilize to fetch the web api or make a call to crm api from within excel.

This will really be helpfull.

I have the same question (0)
  • rogerlee Profile Picture
    20 on at
    RE: MSCRM and connectivity using excel MACRO or VBA code

    You definitely should use VBA, If VBA is more complicated than writing a macro, why would you use it? Short answer: you get a lot more features from VBA macros. Instead of clicking on a spreadsheet and recording those clicks, you can access the full range of Excel features and capabilities. You just need to know how to use them. I have some macro setup information that I keep in a special dropbox. Is anyone interested in this topic?

  • Verified answer
    cloflyMao Profile Picture
    25,208 on at
    RE: MSCRM and connectivity using excel MACRO or VBA code

    Hi Partner,

    Please ignore this reply.

    Clofly 2 Mao is my backup account, there is issue with my main account in recent days, now the issue is fixed, this is just a simple reply from my main account.

  • EmployeeOcta Profile Picture
    6 on at
    RE: MSCRM and connectivity using excel MACRO or VBA code

    Hi Wahaj,

    The Addin i am talking about and the url which you mentioned , it's the same and one point to add here it works for dynamics 365 crm using cds.

    Thanks for all of you for help and support . also i marked the answers for your thoughts.

  • Verified answer
    Wahaj Rashid Profile Picture
    11,321 on at
    RE: MSCRM and connectivity using excel MACRO or VBA code
    Hi, 
    The database approach is for read-only purposes and I agree it’s not the best solution. 
    Please note, if you are talking about the following add-in, it works with Dynamics 365 Finance & Operations only (AX): 
    If your users are looking to analyze the data, they can export the data to excel or you can build reports for them (which they can export to excel as well). 
    If they mean to update, users can export the data from Excel, update it and import it back. 
    As far as I know, there is no add-in available for this purpose by Microsoft. 
    You may take a look at the following: 
    Or, as Clofy mentioned, you have to create your own add-in using VSTO.
  • Verified answer
    Clofly Profile Picture
    260 on at
    RE: MSCRM and connectivity using excel MACRO or VBA code

    Hi Partner,

    As per my understanding, you could create a custom Excel add-in and connect to your OP system database or Web API endpoint in the add-in's function.

    https://www.youtube.com/watch?v=4HOjV_7lnYA

    https://www.youtube.com/watch?v=FBjwYoHP0Go

  • EmployeeOcta Profile Picture
    6 on at
    RE: MSCRM and connectivity using excel MACRO or VBA code

    Basically there is one addin called powerapps office addin, but it works with online system.

    But I have an on premise system.

    So users requests, if possible try to create kind of addin or some sort of crud operation using Excel.

    User are comfortable with one button click work.

    So I was thinking about writing a code through excel to do crud operation and give this to users.

    May be I am wrong but users are users.

    Hope I try to put this correctly.

  • Clofly Profile Picture
    260 on at
    RE: MSCRM and connectivity using excel MACRO or VBA code

    Excel only opens OData, and I didn't find Excel Add-In for OP system.

    If you want to perform CRUD operations via Web API, try Postman instead.

    For update, you could export data as excel worksheets and edit the file and upload it back to Dynamics.

  • EmployeeOcta Profile Picture
    6 on at
    RE: MSCRM and connectivity using excel MACRO or VBA code

    Hello All,

    May be i missed to say that i need to connect to on-premise system and not online system.

    Second point in continue to your response (Clofly 2 Mao) , with respect to connecting to online system is it using that connector is it possible to write code using macro.

    What i know is that we can process the data using the connector but we cannot do kind of CRUD operation with the same.

  • Clofly Profile Picture
    260 on at
    RE: MSCRM and connectivity using excel MACRO or VBA code

    Hi Partner,

    You could check whether Dynamics 365 connector is available to your Excel version.

    pastedimage1614240949954v2.png

    Connect to D365 using Organization account method.

    e2.JPG

    e3.JPG

    Then you can process table with Excel function after loading the data.

    pastedimage1614240791073v1.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
DAnny3211 Profile Picture

DAnny3211 433

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 67 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans