Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-14-2015, 10:18 PM
Guessed's Avatar
Guessed Guessed is offline vba find numbers in document and align text left Windows 7 32bit vba find numbers in document and align text left Office 2010 32bit
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default


FWIW, I think the leading spaces is normal behaviour with Excel content pasted into Word depending on the cell formatting applied in Excel.

How are you finding the leading spaces to remove them? A quick fix to remove leading spaces is to centre-align so you could kill two birds with the one stone if you wanted by following that with a right-align.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #2  
Old 09-14-2015, 10:31 PM
macropod's Avatar
macropod macropod is offline vba find numbers in document and align text left Windows 7 64bit vba find numbers in document and align text left Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Guessed View Post
FWIW, I think the leading spaces is normal behaviour with Excel content pasted into Word depending on the cell formatting applied in Excel.
When I paste an Excel range containing both text numeric data into Word, the data retain the same formatting and alignments they had in Excel and there are no leading/trailing spaces. In this regard, I note the OP is just using an ordinary Paste, not Word's PasteExcelTable or PasteAndFormat methods, for example.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 09-15-2015, 05:27 AM
peligroso peligroso is offline vba find numbers in document and align text left Windows 8 vba find numbers in document and align text left Office 2013
Novice
vba find numbers in document and align text left
 
Join Date: Sep 2015
Posts: 6
peligroso is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
When I paste an Excel range containing both text numeric data into Word, the data retain the same formatting and alignments they had in Excel and there are no leading/trailing spaces. In this regard, I note the OP is just using an ordinary Paste, not Word's PasteExcelTable or PasteAndFormat methods, for example.
Thanks, I will try those methods and see how well they work.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
vba find numbers in document and align text left How to either move document display to right or left; or reduce size of find/replace window. pmstock Word 2 08-02-2014 08:34 PM
vba find numbers in document and align text left Find and Replace function shooting off screen to the left of the document Mattblack Word 1 04-10-2014 03:06 PM
vba find numbers in document and align text left Align...both left and right? supersimu Word 1 01-25-2014 02:05 AM
vba find numbers in document and align text left Numbers on the left side of the text Felipe Word 2 04-19-2012 07:35 AM
vba find numbers in document and align text left How to align page to left side instead of centre ghumdinger Word 2 08-18-2011 10:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:34 PM.


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