+ Reply to Thread
Results 1 to 8 of 8

Xlsm File (VBA code) in SharePoint

  1. #1
    Registered User
    Join Date
    04-16-2023
    Location
    London
    MS-Off Ver
    2016
    Posts
    4

    Xlsm File (VBA code) in SharePoint

    Hello all, Please I need your help on this I have a file with VBA code that displays an alert each time we make any modification on the Excel file. I need to put this file in SharePoint. While it works fine on my desktop, when I put the Excel file on SharePoint, no message box is displayed. Can you suggest any solution to make it work in SharePoint?

    Thank you.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Xlsm File (VBA code) in SharePoint

    When you use it in SharePoint are you using the web version of Excel, or opening it in the desktop version?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    04-16-2023
    Location
    London
    MS-Off Ver
    2016
    Posts
    4

    Re: Xlsm File (VBA code) in SharePoint

    I am using web version

  4. #4
    Registered User
    Join Date
    04-16-2023
    Location
    London
    MS-Off Ver
    2016
    Posts
    4

    Re: Xlsm File (VBA code) in SharePoint

    I have another qusestion please today I tried to open my file on desktop but no MsgBox is appearing, the code is not working and this is not the first time , so I created a new file with the same code and it works, could you please tell what's wrong!
    Thank you.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Xlsm File (VBA code) in SharePoint

    Quote Originally Posted by AndyExcelVBA View Post
    I am using web version
    The web version does not support VBA. To run VBA you must use the desktop version. The web version has a different macro language called Office Script, which is web-only and will not run on the desktop version.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Xlsm File (VBA code) in SharePoint

    Quote Originally Posted by AndyExcelVBA View Post
    I have another qusestion please today I tried to open my file on desktop but no MsgBox is appearing, the code is not working and this is not the first time , so I created a new file with the same code and it works, could you please tell what's wrong!
    Thank you.
    I have no hope of diagnosing this without having both files.

  7. #7
    Registered User
    Join Date
    04-16-2023
    Location
    London
    MS-Off Ver
    2016
    Posts
    4

    Re: Xlsm File (VBA code) in SharePoint

    I only have one xlsm file do I need to have 2? another question please do you have any idea if I can create a new file that can display mesagebox on web version (not using vba)

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Xlsm File (VBA code) in SharePoint

    The two files are one file with code that doesn't work and one file with code that does work.

    On the web version you can use Office Script but I don't know it so I can't tell you how to do anything specific.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Save xlsm to xlsx to sharepoint
    By rpinxt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-12-2022, 11:01 AM
  2. Excel file(xlsx or xlsm) auto upload on SharePoint link
    By PaulM100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2018, 02:38 AM
  3. [SOLVED] How to export from xlsm file to xls but original file must stay in xlsm(vba script)
    By martin81 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-03-2016, 09:51 AM
  4. code help in xlsm file
    By shreif in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2015, 06:11 AM
  5. micro disable in .xlsm file and not able to run vba code....
    By krunal.pa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-08-2014, 01:21 PM
  6. Replies: 3
    Last Post: 05-21-2013, 08:22 AM
  7. Save file xls file as xlsm - macro won't run in xlsm workbook
    By captbluefin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-07-2012, 11:39 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1