LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default pasting into Word...

Hi,
I have a Word document and have many many pasted objects from my Excel
document. I selected an Excel range then went back into Word and
Paste special linkExcel Worksheet object. The object's size gets all
messed up, even after I resize it. Whenever I tell it to update the link it
messes up the table size. So as a fix I've recorded a macro that basically
centers the object on the page, sets the absolute Horizontal position and I
change the height and width of the Excel object. The macro doesn't record
what I picked for Height and Width values. It has a bunch of other settings
but on the one that will resize the table to 6" by 7". How do I insert
whatever into the macro so it will resize it???
The macro that I have is:

Sub Align_Center()
'
Selection.ShapeRange.Fill.Visible = msoFalse
Selection.ShapeRange.Fill.Solid
Selection.ShapeRange.Fill.Transparency = 0#
Selection.ShapeRange.Line.Weight = 0.75
Selection.ShapeRange.Line.DashStyle = msoLineSolid
Selection.ShapeRange.Line.Style = msoLineSingle
Selection.ShapeRange.Line.Transparency = 0#
Selection.ShapeRange.Line.Visible = msoTrue
Selection.ShapeRange.Line.ForeColor.RGB = RGB(0, 0, 0)
Selection.ShapeRange.Line.BackColor.RGB = RGB(255, 255, 255)
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Left = 54#
Selection.ShapeRange.Top = 187.2
Selection.ShapeRange.RelativeHorizontalPosition = _
wdRelativeHorizontalPositionColumn
Selection.ShapeRange.RelativeVerticalPosition = _
wdRelativeVerticalPositionPage
Selection.ShapeRange.Left = wdShapeCenter
Selection.ShapeRange.Top = InchesToPoints(2.6)
Selection.ShapeRange.LockAnchor = False
Selection.ShapeRange.WrapFormat.AllowOverlap = True
Selection.ShapeRange.WrapFormat.Side = wdWrapBoth
Selection.ShapeRange.WrapFormat.DistanceTop = InchesToPoints(0)
Selection.ShapeRange.WrapFormat.DistanceBottom = InchesToPoints(0)
Selection.ShapeRange.WrapFormat.DistanceLeft = InchesToPoints(0.13)
Selection.ShapeRange.WrapFormat.DistanceRight = InchesToPoints(0.13)
Selection.ShapeRange.WrapFormat.Type = wdWrapTopBottom

End Sub

Many thanks,


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pasting Spreadsheet into Word Marianne Excel Discussion (Misc queries) 7 July 7th 08 01:43 PM
Pasting excel into word kmbenn0 Excel Discussion (Misc queries) 1 June 27th 07 09:50 PM
Pasting into word Naz Excel Discussion (Misc queries) 0 June 6th 07 02:10 PM
Pasting from Word Table Eric Excel Discussion (Misc queries) 3 March 22nd 07 06:53 PM
Pasting into Word w/o lines??? Michael Raphael Charts and Charting in Excel 1 August 16th 06 07:32 PM


All times are GMT +1. The time now is 12:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"