Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2013, 12:29 PM
norwood norwood is offline column width error message Windows Vista column width error message Office 2000
Novice
column width error message
 
Join Date: Sep 2013
Posts: 23
norwood is on a distinguished road
Default column width error message

I am using the commands :
Selection.Tables(1).Columns(1).PreferredWidth = CentimetersToPoints(6)
Selection.Tables(1).Columns(2).PreferredWidth = CentimetersToPoints(2)
Selection.Tables(1).Columns(1).PreferredWidth = CentimetersToPoints(6)
Selection.Tables(1).Columns(2).PreferredWidth = CentimetersToPoints(1)
for my 4 column table.

But I get the error message : Cannot access individual columns in this collection because the table has mixed cell widths.



How do I adjust my column widths ? (Strangely, the above commands work on the first run, but it crashes in subsequent runs, even though I clear the document) Thanks !
Reply With Quote
  #2  
Old 10-07-2013, 01:10 PM
slaycock slaycock is offline column width error message Windows 7 64bit column width error message Office 2013
Expert
 
Join Date: Sep 2013
Posts: 256
slaycock is on a distinguished road
Default

Try looking at .setwidth. Do you know you can look up the keywords by placing the cursor on the keyword and pressing f1.

If the table has cells that have been split or merged along the column then its likely that this command will fail.
Reply With Quote
  #3  
Old 10-07-2013, 05:05 PM
norwood norwood is offline column width error message Windows Vista column width error message Office 2000
Novice
column width error message
 
Join Date: Sep 2013
Posts: 23
norwood is on a distinguished road
Default

Thanks. (And, yes the table had been merged...)
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Column Width keeps changing alsmith Word Tables 1 05-25-2013 02:09 AM
column width error message Word 2012: Change column width changes table width OpfinnarJocke Word Tables 1 09-22-2012 04:03 AM
column width error message How to create a chart with a variable width column? Guy Roth Excel 1 03-20-2012 05:52 AM
column width error message Column width markg67 Word 2 06-07-2010 07:40 PM
how do i adjust column to chosen width hill0093 Word 0 09-19-2009 05:24 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:25 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft