Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2018, 08:58 AM
vjvj123 vjvj123 is offline Wish to delete letters to the right of the cursor in a Table cell, but whole cell is being deleted Windows 10 Wish to delete letters to the right of the cursor in a Table cell, but whole cell is being deleted Office 2016
Novice
Wish to delete letters to the right of the cursor in a Table cell, but whole cell is being deleted
 
Join Date: Sep 2018
Posts: 11
vjvj123 is on a distinguished road
Default


Quote:
Originally Posted by macropod View Post
The line:
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
is what you get via Ctrl-Shift-RightArrow, which doesn't require you to know how many characters there are and, moreover, spans everything until the end of the line.
Dear Paul, Thanks, but I am still having problem, the reason being: when there is a special character like # in the text, using Ctrl-Shift-RightArrow doesn't actually select the text till end as expected and suggested by you, but rather only till the next occurence of the # in the same text string, thus compelling me to use Ctrl-Shift-RightArrow multiple times, which is effectively the same as using del key multiple times.
[eg, the text like abcd#pqrs#uvwx ]
Please let me know if I have followed your suggestion correctly, and if yes the possible remedy.
Reply With Quote
Reply

Tags
delete text toright, macro, table cell



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wish to delete letters to the right of the cursor in a Table cell, but whole cell is being deleted cell alignment gets deleted when using backspace in a cell saandahn Word Tables 4 01-08-2018 09:27 AM
How to delete unused cell remaining at end of a block of deleted data SKEETER Excel 2 10-24-2017 07:06 AM
How can I delete spaces & lines in a table cell mrayncrental Word VBA 3 10-20-2014 07:09 PM
Wish to delete letters to the right of the cursor in a Table cell, but whole cell is being deleted Delete table if cell has data So New2 This Word VBA 1 05-06-2013 09:00 PM
How can I delete the content of a cell in column if the cell value is more than 1000? Learner7 Excel 2 06-27-2011 05:44 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:33 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