Hi All,
Thanks for all the fast reply of my previous threads.
You people are so helpful.
Now this time i need a code or function which resize a ractangle according to the no of rows data in excel using VBA.
Thanx in Advance.
Hi All,
Thanks for all the fast reply of my previous threads.
You people are so helpful.
Now this time i need a code or function which resize a ractangle according to the no of rows data in excel using VBA.
Thanx in Advance.
Code:Public Sub ResizeShapeOverRange(shp As Object, rngRange As Range) shp.Height = rngRange.Height shp.Width = rngRange.Width shp.Top = rngRange.Cells(1).Top shp.Left = rngRange.Cells(1).Left End Sub Sub Callit() Call ResizeShapeOverRange(ActiveSheet.Shapes(1), Range("C5:D10")) 'OR Call ResizeShapeOverRange(ActiveSheet.Shapes("NameOfShape"), Range("C5:D10")) End Sub
A dream is not something you see when you are asleep, but something you strive for when you are awake.
It's usually a bad idea to say that something can't be done.
The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve
Join us at Facebook
Thanx its working !!!!!!!!!!!!! Woooohoooooo
Bookmarks