A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Remove Indent using VBA



 
 
Thread Tools Display Modes
  #1  
Old June 21st, 2006, 11:51 PM posted to microsoft.public.powerpoint
external usenet poster
 
Posts: n/a
Default Remove Indent using VBA

PowerPoint 2003

I am using Excel VBA to copy some XL cells to create a PowerPoint chart via
copy /paste form the clipboard. Unfortunately I have no control over the XL
cells and some of them have 2 lines of data in a single cell ..
unfortunately PowerPoint indents the 2nd row which I do not want.

I have tried playing with macro recorder (no help at all) and various
..shapes(1).TextFrame.Textrange properties to no avail.

Could anybody help with the VBA to remove this indent (or set the indent
value to zero)

Many thans
J


  #2  
Old July 6th, 2006, 03:35 PM posted to microsoft.public.powerpoint
external usenet poster
 
Posts: n/a
Default Remove Indent using VBA

I'm not sure if this is exactly what you're asking, but you can use the
following code to remove the bullet point:

ActiveWindow.Selection.ShapeRange.TextFrame.TextRa nge.Paragraphs(Start:=2,
length:=0).ParagraphFormat.Bullet.Visible = 0

In the above example, replace the 2 with the number of the line you
would like to change. This next code will change the indent level of
the selected line(s):

ActiveWindow.Selection.TextRange.IndentLevel = 1

I hope that helps!


John wrote:
PowerPoint 2003

I am using Excel VBA to copy some XL cells to create a PowerPoint chart via
copy /paste form the clipboard. Unfortunately I have no control over the XL
cells and some of them have 2 lines of data in a single cell ..
unfortunately PowerPoint indents the 2nd row which I do not want.

I have tried playing with macro recorder (no help at all) and various
.shapes(1).TextFrame.Textrange properties to no avail.

Could anybody help with the VBA to remove this indent (or set the indent
value to zero)

Many thans
J


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I remove an indent within a cell? DB--less than excel expert General Discussion 5 February 17th, 2006 08:15 PM
Wish to Remove or Uninstall Visio 2003 with Active Directory Matt Carter Visio 0 February 17th, 2006 02:59 PM
Word Templates Remove Timo General Discussion 3 December 21st, 2004 08:15 AM
Total remove of Office xp pro Lou Setup, Installing & Configuration 3 November 10th, 2004 08:19 PM
office 2000 remove tools bud Setup, Installing & Configuration 1 May 27th, 2004 10:40 AM


All times are GMT +1. The time now is 05:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.