Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-13-2023, 01:59 PM
msnyder701 msnyder701 is offline VBA needed for changing all text boxes in presentation Windows 10 VBA needed for changing all text boxes in presentation Office 2021
Novice
VBA needed for changing all text boxes in presentation
 
Join Date: Jul 2023
Posts: 2
msnyder701 is on a distinguished road
Default VBA needed for changing all text boxes in presentation

I have this code for changing the location of a single text box:
Sub Macro2(control As IRibbonControl)
Dim oShp As Shape
On Error Resume Next

Set oShp = ActiveWindow.Selection.ShapeRange(1)

With oShp
.LockAspectRatio = False
.Left = 34.5
.Top = 84.5
End With

End Sub



What I want to do is to do this for all text boxes that contain text (i.e., not shapes that are charts, pictures, etc.) in the entire presentation. Can someone show me how to do this? The codes that I've tried to write just don't work. Thanks!
Reply With Quote
 

Tags
select all, text boxes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed in changing text & line colour please dazzystar Word 2 05-27-2021 09:39 AM
VBA needed for changing all text boxes in presentation Changing the names of text boxes catflap Word 20 05-11-2018 08:57 AM
Changing the font colour in all text boxes marqives Word VBA 1 11-25-2014 06:05 PM
VBA needed for changing all text boxes in presentation Changing the placeholder text for drop down boxes DeadBatteries Word 1 08-24-2012 09:09 AM
Quick change for all text boxes in a presentation tmlander PowerPoint 1 03-09-2012 01:20 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:59 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft