+ Reply to Thread
Results 1 to 5 of 5

Remove all margins from all text boxes

  1. #1
    Valued Forum Contributor
    Join Date
    02-26-2010
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2003/2007/2010/2016
    Posts
    432

    Exclamation Remove all margins from all text boxes

    Hello!

    This is for PowerPoint, but hopefully the VBA is similar. I would like to go through the whole document and for every textbox it finds, remove all the internal margins.

    Here's what I got but it keeps giving me an "Object Required" error:

    Please Login or Register  to view this content.
    I appreciate your help!

    Regards,

    Leaning

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Remove all margins from all text boxes

    Try this...
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Valued Forum Contributor
    Join Date
    02-26-2010
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2003/2007/2010/2016
    Posts
    432

    Re: Remove all margins from all text boxes

    Alphafrog,

    Nope. Didn't work. After I run the macro, I click on a few textboxes and they still show internal margins of 0.1, etc.

    Any other ideas?

    Regards,

    Leaning

  4. #4
    Valued Forum Contributor
    Join Date
    02-26-2010
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2003/2007/2010/2016
    Posts
    432

    Re: Remove all margins from all text boxes

    Alphafrog,

    I worked it out (after looking over what you did.)

    This works:
    Please Login or Register  to view this content.
    Thanks for all your help!

    Regards,
    Leaning
    Last edited by leaning; 08-30-2015 at 01:55 PM. Reason: edit code

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Remove all margins from all text boxes

    You're welcome. I see you wanted to change all shapes with text and not just textboxes.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Lossing Chart Boxes/ Text boxes when close file
    By david2003 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-05-2014, 09:39 AM
  2. [SOLVED] Remove the slighty shaded border on ActiveX Text Boxes
    By perducci in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2014, 09:31 PM
  3. [SOLVED] Help with code for userform text boxes, combo boxes and excel
    By innerise in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2014, 09:07 AM
  4. [SOLVED] Is there a way to remove all text boxes in a word document?
    By 1tane1 in forum Word Formatting & General
    Replies: 4
    Last Post: 11-18-2013, 04:54 AM
  5. [SOLVED] Text Boxes: Insert/Text Box vs. Developer Text Boxes
    By snapfade in forum Excel General
    Replies: 5
    Last Post: 10-09-2012, 01:45 AM
  6. Replies: 2
    Last Post: 02-19-2010, 03:55 PM
  7. Help to remove all margins
    By ryland in forum Excel General
    Replies: 1
    Last Post: 09-04-2006, 09:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1