Clarkie001
IS-IT--Management
Hi,
I am using a Userform in excel to run the following macro.
This works fine, however the issue arises when I make this available on our website for other users to view.
At that point I am getting a Run-Time error 1004 Method 'Sheets'of object'_Global' failed.
I dont understand why it works fine through excel locally but when published through the web site stops.
Any help would be much appreciated.
Clarkie
Sub Usage_Start()
Sheets("Create_Usage"
.Select
Range("A2"
.Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range("B2"
.Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range("B1"
.Select
End Sub
I am using a Userform in excel to run the following macro.
This works fine, however the issue arises when I make this available on our website for other users to view.
At that point I am getting a Run-Time error 1004 Method 'Sheets'of object'_Global' failed.
I dont understand why it works fine through excel locally but when published through the web site stops.
Any help would be much appreciated.
Clarkie
Sub Usage_Start()
Sheets("Create_Usage"
Range("A2"
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range("B2"
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range("B1"
End Sub