Need help with changing vba for excel 7!!!!

chrysti

Board Regular
Joined
Dec 20, 2006
Messages
218
Sub InsertImageSameCell()

On Error Resume Next
Let x = 0
Do While x < 720

Set Path = ActiveCell.Offset(0, 0)

ActiveSheet.Pictures.Insert( _
Path).Select

Selection.ShapeRange.ZOrder msoBringToFront

ActiveCell.Offset(1, 0).Range("A1").Select

x = x + 1
Loop

End Sub


This is my code, it hangs up on the ActiveSheet.Pictures.Insert, I know this has to be changed, I just don't know what to change it to for it to work!!!

Thanks in advance for the help!!!
Chrysti
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi Chrysti,
I don't have my 07 here (it's at home enjoying a day off that I didn't get :mad: ) but I would think if you recorded yourself a quick little macro inserting a picture, it would show you the syntax you need to see.
 
Upvote 0
Chrysti

Are you sure the line you indicate is what needs to be changed?

What do you mean by 'hangs up'?

Are you getting any error messages?
 
Upvote 0
Yes I get an error, but it comes up and I don't get to read it because my Excel gives me the fatal error recovering work and shutting down error. It basically makes my whole Excel shut down. But when I step through the macro that is the step that causes all of this to happen everything before that it runs like normal.
 
Upvote 0
Have you tried recording the actions you want it to perform and having it tell you what it wants to see?
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,749
Members
449,050
Latest member
excelknuckles

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