Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 03-22-2016, 03:06 PM
rpb925 rpb925 is offline Adding tables to Created word document whilst other word document open Help Windows 7 64bit Adding tables to Created word document whilst other word document open Help Office 2010 64bit
Novice
Adding tables to Created word document whilst other word document open Help
 
Join Date: Mar 2016
Location: Sydney
Posts: 17
rpb925 is on a distinguished road
Default

Thanks Paul. Working a treat.
I'm trying to get my head around the ranges and formatting still. I want to get the text bold and centered for QueryA!ConditionCategory. It's bold but it's not centering.

I'm trying to work out the following..
what exactly the .range is specifying (it has no reference to a location next to it)
What paragraphs.last.previous.previous doing (is it going to the last paragraph then jumping back two paragraphs to take into account the vbCr's?)
how come style has a .range in front of it but alignment doesn't. (I tried putting .range in front of alignment and it didn't like it)

Code:
With .Range
.InsertAfter QueryA!ConditionCategory & vbCr & vbCr
 With .Paragraphs.Last.Previous.Previous
          .Range.Style = wdStyleStrong
          .Alignment = wdAlignParagraphCentre
        End With
End With
Paul would you recommend any good online tutorials or books to work through to improve my vba basics. I feel stupid asking these questions but it's really hard to try and understand what to do just using online msdn. So far I just hash together bits and pieces I find on the internet and sort of fluke that they function to some degree.
Reply With Quote
 

Tags
add, tables, vba

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding furigana to a Word document rjribbit Word 0 12-03-2015 09:33 AM
Adding tables to Created word document whilst other word document open Help Inexperienced user having dificulty adding text to document I created. Fixed text moves around. Athalwolf Word 2 02-08-2015 09:08 AM
Adding tables to Created word document whilst other word document open Help Error message opening a document in Word "Word cannot open this file because it is larger than 512 M poonamshedge Word 2 09-11-2014 06:11 AM
Adding tables to Created word document whilst other word document open Help Adding and Moving parts of a document in Word PauledInAction Word 4 07-13-2012 02:38 PM
Adding bullets in a protected Word document Cindylu3 Word 0 10-03-2008 03:16 PM

Other Forums: Access Forums

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