#1   Report Post  
Posted to microsoft.public.excel.programming
Liz Liz is offline
external usenet poster
 
Posts: 133
Default Borders

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Borders

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

"Liz" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Borders

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

"Liz" wrote in message
...
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



  #4   Report Post  
Posted to microsoft.public.excel.programming
Liz Liz is offline
external usenet poster
 
Posts: 133
Default Borders

Thanks Nick

it was the "TakeFocusOnClick" property to False that did it - I knew it
would be something simple I had missed!

"NickHK" wrote:

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

"Liz" wrote in message
...
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




  #5   Report Post  
Posted to microsoft.public.excel.programming
Liz Liz is offline
external usenet poster
 
Posts: 133
Default Borders

Thanks Peter, but I wanted to do it with one click. My toolbars are too big
already and I wanted colored borders.

"Peter T" wrote:

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

"Liz" wrote in message
...
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
borders kim Excel Discussion (Misc queries) 1 October 12th 07 10:24 PM
Borders DAH Mist Excel Discussion (Misc queries) 0 October 1st 07 10:24 PM
Borders Tucker Excel Discussion (Misc queries) 2 May 15th 07 06:41 AM
borders wdm0970 Excel Discussion (Misc queries) 1 September 26th 06 09:31 PM
Help with borders Ed[_10_] Excel Programming 0 July 23rd 03 08:07 PM


All times are GMT +1. The time now is 01:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"