Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expand Embedded Excel SpSheet in Word Doc v2003

Status
Not open for further replies.
May 5, 2005
39
US
My co-worker is working on a spreadsheet here is the dilemma. I am hoping someone here can help.

Thanks as always

I have embedded an excel table within a word document. I created a macro to unprotect the workbook insert a row in the proper place and re-protect the workbook. Is there a VBA line or lines that I can add to expand the size of the excel window by one row so I can see the bottom line of the spreadsheet within the word document?


Private Sub CommandButton1_Click()
' Inserts Row in Credit Exposure Table
'
Application.Goto Reference:="Insertion_Point"
Selection.EntireRow.Insert
TableHeight = Application.Height + 16

' Is there a line or two I can add here to expand the size
' of the excel table in word so the bottom line of the worksheet
' does not drop out of sight?

End Sub


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top