Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-25-2014, 04:08 AM
_mike1 _mike1 is offline Changing the size of individual cell Windows 7 64bit Changing the size of individual cell Office 2010 64bit
Novice
Changing the size of individual cell
 
Join Date: Nov 2014
Posts: 1
_mike1 is on a distinguished road
Question Changing the size of individual cell

Hi there, I cannot solve an obvious problem for some strange reason. I want to change the size of the individual cell in a table, however, at the same time I am also changing the size of the table itself. Adjacent column just shifts correspondingly. How to make adjacent column to increase/decrease its size proportionally to keep the overall table size constant? The code I am using is shown below:



With tbl

.AutoFitBehavior wdAutoFitFixed
.Borders.InsideColor = wdColorGray25
.Borders.OutsideColor = wdColorGray25
.Cell(1, 1).Width = CentimetersToPoints(1.5)

End With

I include some pictures for visualization. Many thanks.
Attached Images
File Type: jpg before.JPG (11.7 KB, 13 views)
File Type: jpg after.JPG (11.5 KB, 13 views)
Reply With Quote
  #2  
Old 11-25-2014, 05:58 PM
macropod's Avatar
macropod macropod is offline Changing the size of individual cell Windows 7 64bit Changing the size of individual cell Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

The code is changing the width of the cell but, unless you change the width of the adjoining cell also, the row width changes.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
cell formatting



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the size of individual cell Copying a Changing cell value to one cell mbesspiata Excel 1 04-29-2014 02:16 PM
Changing the size of individual cell changing font size conditionally newton.rogers Excel 1 03-18-2014 12:57 PM
changing size and position of presentation yoel PowerPoint 2 01-08-2013 02:18 PM
changing font size without changing leading carolns Word 1 09-14-2009 12:30 PM
Changing the size of individual cell Changing size of footer izzyf Word 2 03-23-2009 12:19 PM

Other Forums: Access Forums

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