Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Martin B
 
Posts: n/a
Default centre across selection shortcut

I use this feature a lot but it is a lengthy process selecting Format Cells Alignment Horizontal Centre Across Selection
Is there a quick shortcut to use instead of the merge and centre button on the menu bar?

Thanks
Martin
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default centre across selection shortcut

Nothing built in, one could use ctrl + 1, a, tab, c, c, enter, enter.
However if you select for instance A1 and B1, then do toolsmacrorecord a
new macro, use a shortcut and put it in your personal macro workbook, click
OK. do formatcellsalignment and center across selection. Stop the macro
then you can use your own created shortcut next time, just select the cells
in question and do the shortcut.
Note that the merge and center button does merge cells, not just center
across selection which is a better way to go


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com




"Martin B" wrote in message
...
I use this feature a lot but it is a lengthy process selecting Format Cells
Alignment Horizontal Centre Across Selection

Is there a quick shortcut to use instead of the merge and centre button on
the menu bar?

Thanks
Martin


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default centre across selection shortcut

Martin

Sub TOGGLECENTERACROSS()
With Selection
If .HorizontalAlignment = xlCenterAcrossSelection Then
.HorizontalAlignment = xlGeneral
Else
Selection.HorizontalAlignment = xlCenterAcrossSelection
End If
End With
End Sub

Assign the above to a button on your toolbar or to a shortcut key combo.


Gord Dibben MS Excel MVP

On Mon, 17 Apr 2006 18:44:40 +0100, "Martin B"
wrote:

I use this feature a lot but it is a lengthy process selecting Format Cells Alignment Horizontal Centre Across Selection
Is there a quick shortcut to use instead of the merge and centre button on the menu bar?

Thanks
Martin


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don Guillett
 
Posts: n/a
Default centre across selection shortcut

I have this in my personal.xls with a custom toolbar button assigned on my top toolbar

Sub CenterAcross()
Selection.HorizontalAlignment = xlCenterAcrossSelection
End Sub

--
Don Guillett
SalesAid Software

"Martin B" wrote in message ...
I use this feature a lot but it is a lengthy process selecting Format Cells Alignment Horizontal Centre Across Selection
Is there a quick shortcut to use instead of the merge and centre button on the menu bar?

Thanks
Martin
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
Add "left align across selection" cell formatting Monty Analyst Excel Worksheet Functions 2 November 5th 08 03:17 PM
First row in Selection range (first index of a cell) EXCEL VBA [email protected] Excel Worksheet Functions 1 March 20th 06 09:38 PM
'Centre across selection' format to apply to vertical range Shrikant Excel Discussion (Misc queries) 3 September 27th 05 09:24 AM
Cell Selection after "Enter" Synectica Excel Discussion (Misc queries) 6 August 29th 05 09:55 PM
What is the Keyboard Shortcut of Merge and Centre Tool Command Rao Ratan Singh Excel Discussion (Misc queries) 3 February 13th 05 10:27 PM


All times are GMT +1. The time now is 03:51 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"