![]() |
|
#1
|
|||
|
|||
|
Hi,
I want to delete the current paragraph (where the pointer located) without selecting the whole paragraph by just single click through VBA code. Thank you |
|
#2
|
||||
|
||||
|
Create a macrfo with the line
Code:
Selection.Paragraphs(1).Range.Delete
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
#3
|
|||
|
|||
|
Quote:
Thank you for your reply This is the VBA code for doing this purpose Code:
Sub DeleteCurrentParagraph() ' Selection.Paragraphs(1).range.Delete End Sub |
|
| Tags |
| find and replace, vba code, word vba |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Click in paragraph shows box with a 3-dot handle | clevercat | Word | 6 | 11-01-2019 01:41 AM |
Shortcut for selecting a paragraph
|
paik1002 | Word | 2 | 12-13-2015 12:50 PM |
| Automatically Delete Slides based on current time | Pacman52 | PowerPoint | 2 | 07-16-2015 05:30 AM |
| A macro that moves the current paragraph up or down? | New Daddy | Word VBA | 2 | 04-13-2014 02:25 PM |
Delete Current Row in protected Form
|
joyfulincanada | Word VBA | 12 | 04-08-2013 03:37 PM |