1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
Public tg, lg, hg, wg
Sub Macro1()
'
' Macro1 Macro
'
'
Set graphe = ActiveSheet.ChartObjects(1)
tg = graphe.Top
lg = graphe.Left
hg = graphe.Height
wg = graphe.Width
'graphe.ShowWindow = False
ActiveWindow.WindowState = xlMaximized
t = ActiveWindow.Top
l = ActiveWindow.Left
h = ActiveWindow.Height
w = ActiveWindow.Width
ActiveWindow.WindowState = xlNormal
'MsgBox graphe.Width
graphe.Top = 0
graphe.Left = 0
graphe.Height = h - 60
graphe.Width = w - 60
ActiveWindow.WindowState = xlMaximized
End Sub |
Partager