Jump to content

Recommended Posts

Posted

Καλησπέρα.

 

Εάν βάλω σε ένα Word document (με Insert -> Picture -> From file... ) π.χ. 3 εικόνες από 3 αρχεία εικόνων, έρχονται στο έγγραφο καί οι τρεις εικόνες, και είναι by default "In Line With Text".

 

Αυτό που θέλω είναι να κάνω καί τις τρεις απευθείας (με μία macro) να γίνουν "In Front of Text".

 

Έχω ψάξει πάρα πολύ για τον κώδικα που χρειάζεται αυτή η macro, αλλά, δυστυχώς δεν τα καταφέρνω. Πρέπει manually να το κάνω στις εικόνες μία-μία.

 

Οποιαδήποτε βοήθεια θα ήταν πολύτιμη.

 

Ευχαριστώ!

Posted

Για όποιον ενδιαφέρεται για κάτι τέτοιο, ο κώδικας είναι:

 

Sub testing()
Dim shp As InlineShape
For Each shp In ActiveDocument.InlineShapes
If shp.Type = wdInlineShapePicture Then
shp.ConvertToShape.WrapFormat.Type = wdWrapFront
End If
Next shp
End Sub

  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.