VBA and SharePoint

Ronni f

New Member
Joined
Mar 25, 2021
Messages
10
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. Web
Hi,

I posted a thread in April and support was fab. I was given the below formula to create what was needed. I've been asked to put the excel sheet in SharePoint and when I do the formula doesn't work.
I've tried to upload the sheet and then tried to Save As, but no joy.
Is there anything I can do to get this to work?

VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim ckArea As String, myC As Range
'
ckArea = "K2:M10000"                  '<<< The range you wish to monitor for changes
If Target.Count > 1 Then Exit Sub
If Not Application.Intersect(Target, Range(ckArea)) Is Nothing Then
    If UCase(Target.Value) = "INSPECTED" Then
        Target.Offset(0, 1).ClearContents
        Target.Offset(0, 2).Value = Date
    End If
End If
End Sub

Thanks in advance
Ronni
 
Last edited by a moderator:

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Do you mean that the macro doesn't work if you open the file in xl online?
 
Upvote 0
Do you mean that the macro doesn't work if you open the file in xl online?

Hiya

No. It's when I upload to SharePoint or save to a SharePoint folder and then open it there to work on it.

Thx
 
Upvote 0
Are you opening the file in the desktop app?
 
Upvote 0
Are you opening the file in the desktop app?
Yes, Both in desktop app and working in SharePoint.
I think I've just got it to work, though.
I opened it through one drive and saved a copy in my sharepoint folder, I then opened it in the desktop app and tried the macro and it populated the cells as it should.
 
Upvote 0
Solution
Glad you sorted it & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,980
Messages
6,122,563
Members
449,088
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top