MadIce
asked on
Zorder issue when calling excel shape.
Whats wrong with the second line of code from the following:
oChart.Shapes.Item("Text Box 4").Select()
oExcel.Application.ActiveW indow.Sele ction.Shap eRange.ZOr der = Microsoft.Office.Core.MsoZ OrderCmd.m soBringToF ront
I get a "member not found" error which I believe is for the Zorder. I want to move a text box on my chart to the front. Thanks in advance
oChart.Shapes.Item("Text Box 4").Select()
oExcel.Application.ActiveW
I get a "member not found" error which I believe is for the Zorder. I want to move a text box on my chart to the front. Thanks in advance
Does it work if you use an explicit value for the Z-order?
oExcel.Application.ActiveW indow.Sele ction.Shap eRange.ZOr der = 0 'msoBringToFront = 0
oExcel.Application.ActiveW
ASKER
byundt, I tried using explicit value. same issue.
lfcbc75, the code is not on the spreadsheet side. Not sure what other code would be useful. There is too much to add but here is some of it.
Dim oExcel As Excel.Application
Dim oSheet As Excel.Worksheet
Dim oWrkBook As Excel.Workbook
Dim oChart As Excel.Chart
lfcbc75, the code is not on the spreadsheet side. Not sure what other code would be useful. There is too much to add but here is some of it.
Dim oExcel As Excel.Application
Dim oSheet As Excel.Worksheet
Dim oWrkBook As Excel.Workbook
Dim oChart As Excel.Chart
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
byundt, That did the trick. Thanks alot. I thought I was going to have to do this a different way.
The syntax shown seems to invalid...