+ Reply to Thread
Results 1 to 3 of 3

Can I line up lots of controls on a sheet at once?

  1. #1
    Robert Hargreaves
    Guest

    Can I line up lots of controls on a sheet at once?

    Hi

    I have just created a menu on a sheet at the front of my workbook. I have
    made it appear first and I have just added a button and copied it 44 times
    to the sheet.

    The only way I know to get them all lined up on the sheet is to change each
    ones individual properties.

    Can someone tell me how I would get a load of controls on the sheet to line
    up?

    Thanks.
    Rob




  2. #2
    Bob Phillips
    Guest

    Re: Can I line up lots of controls on a sheet at once?

    Rob,

    Do you mean you want to move some buttons?

    Sub MoveButtons()
    Dim btn As Object
    Dim i As Long

    For Each btn In ActiveSheet.Buttons
    btn.Left = 100
    i = i + 1
    btn.Top = i * 40
    Next btn
    End Sub

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Robert Hargreaves" <robhargreaves@netbreeze.co.uk> wrote in message
    news:d7l982$na9$1@news6.svr.pol.co.uk...
    > Hi
    >
    > I have just created a menu on a sheet at the front of my workbook. I have
    > made it appear first and I have just added a button and copied it 44 times
    > to the sheet.
    >
    > The only way I know to get them all lined up on the sheet is to change

    each
    > ones individual properties.
    >
    > Can someone tell me how I would get a load of controls on the sheet to

    line
    > up?
    >
    > Thanks.
    > Rob
    >
    >
    >




  3. #3
    George Nicholson
    Guest

    Re: Can I line up lots of controls on a sheet at once?

    1) Make sure the Drawing toolbar is visible.
    2) Select the Controls/Shapes you want to align
    3) DrawingToolbar>Draw>AlignOrDistribute > (pick 1 of 8 possible choices)

    HTH,
    --
    George Nicholson

    Remove 'Junk' from return address.


    "Robert Hargreaves" <robhargreaves@netbreeze.co.uk> wrote in message
    news:d7l982$na9$1@news6.svr.pol.co.uk...
    > Hi
    >
    > I have just created a menu on a sheet at the front of my workbook. I have
    > made it appear first and I have just added a button and copied it 44 times
    > to the sheet.
    >
    > The only way I know to get them all lined up on the sheet is to change
    > each ones individual properties.
    >
    > Can someone tell me how I would get a load of controls on the sheet to
    > line up?
    >
    > Thanks.
    > Rob
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1