Borders

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to place a border at the press of a button around cells that
have been selected manually on a spreadsheet . Can anyone help, as I am
missing something?

Thanks
 
There are built-in buttons to do that and similar.

Customize toolbars, Commands, Format

Scroll down the list of commands until you find the Border button you want
and drag onto your toolbar. One of the buttons is a like the colour format
button which drops down to a commadbar with all the border buttons.

Regards,
Peter T
 
For the command button (if is from the Controls tool Box), have you set its
"TakeFocusOnClick" property to False ?

And you are using code like:
Selection.BorderAround xlContinuous

NickHK
 
Thanks Nick

it was the "TakeFocusOnClick" property to False that did it - I knew it
would be something simple I had missed!
 
Thanks Peter, but I wanted to do it with one click. My toolbars are too big
already and I wanted colored borders.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top