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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |