-2147024809 (80070057) run time error - How to fix?

Jinhee

New Member
Joined
Mar 15, 2018
Messages
2
Dear,

I see a run time error pop-up when I open my excel file. I don't know how to attach the screen shot to this thread...

-2147024809 (80070057) run time error

Can anybody help me to understand this and let me know how to fix it?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Would you be able to attach the workbook?
Are you selecting a shape in your macro? If so, try selecting the worksheet containing the shape first.
 
Upvote 0
Would you be able to attach the workbook?
Are you selecting a shape in your macro? If so, try selecting the worksheet containing the shape first.


So sorry but I see below descriptions..


Sub UnHighlightAll(clickshape As Shape)






Application.ScreenUpdating = False






Dim numshapes As Integer


Dim shp As Shape


Dim shapename As String


Dim clickshapenum As Integer





Sheets(Introduction).Unprotect (Sanofi)





numshapes = Sheets(Introduction).Range(CA1).End(xlDown).Row






Dim levelshape(0 To 30) As Integer






For i = 1 To numshapes


Enter = 0


If Sheets(Introduction).Range(CA & i).Value = https://urldefense.proofpoint.com/v...2JXxnELuZ1tRl3KLY50JLtorgQlU4BQO4UQiBP5VgM&e= Then


clickshapenum = i


levelshape(i) = Range(level)(i)


Exit For


End If


levelshape(i) = Range(level)(i)


Next i






For i = 1 To numshapes





HideBaadmai = 0


shapename = Sheets(Introduction).Range(CA & i).Value


Set shp = Sheets(Introduction).Shapes( & shapename)


If shp.Visible = False Then


HideBaadmai = 1


shp.Visible = True


End If


shp.Select





If clickshapenum = 0 Then


If Left(https://urldefense.proofpoint.com/v...2JXxnELuZ1tRl3KLY50JLtorgQlU4BQO4UQiBP5VgM&e= , 7) = TextBox Or https://urldefense.proofpoint.com/v...2JXxnELuZ1tRl3KLY50JLtorgQlU4BQO4UQiBP5VgM&e= = Rectangle 286 Or https://urldefense.proofpoint.com/v...2JXxnELuZ1tRl3KLY50JLtorgQlU4BQO4UQiBP5VgM&e= = Rectangle 294 Then


levelshape(clickshapenum) = 3


Else


levelshape(clickshapenum) = 2


End If


End If





If Range(level)(i) = levelshape(clickshapenum) Then


If Range(level)(i) = 2 Then


Selection.ShapeRange.Fill.ForeColor.RGB = RGB(165, 166, 203)


Selection.ShapeRange.TextFrame2.TextRange.Font.Fill.ForeColor.ObjectThemeColor = msoThemeColorBackground1


Else


Selection.ShapeRange.Fill.ForeColor.RGB = RGB(122, 123, 178)


Selection.ShapeRange.TextFrame2.TextRange.Font.Fill.ForeColor.ObjectThemeColor = msoThemeColorBackground1


End If


End If





If HideBaadmai = 1 Then shp.Visible = False


Next i






End Sub
 
Upvote 0

Forum statistics

Threads
1,214,865
Messages
6,121,988
Members
449,060
Latest member
mtsheetz

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