![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 1,288
|
I have a sheet who I want the column A make bold.See the following macro I wrote:
With Cells(10, 1).Font .Name = "Arial" .Size = 10 .FontStyle = "Bold" End With In this macro only the cell of row 10 change in bold.I want to have all the cells in column A change in bold,but I don't know in advance ho many rows there are.It is variable. Anyone a solution on this. Many thanks |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Is something like this any good to you?
|
|
|
|
|
|
#3 | |
|
Board Regular
Join Date: Mar 2002
Posts: 1,288
|
Quote:
(Is there also a code so that all the text in cell are on the left in the cell?) |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
Hi
Text ie JACK in left or should be right is value and numbers, so you need to convert to text the whole column in this case.. Simple is add col and convert then CPAV (copy / paste as value) silly but will left align im sure. =text(cell, 0 ) then CPAV Caution XP will not like this and all sorts will pop up even green triangles. XP is winding me up!
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
#5 | |
|
Board Regular
Join Date: Mar 2002
Posts: 1,288
|
Quote:
|
|
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
verluc,
You mean something like this?
HTH |
|
|
|
|
|
#7 | |
|
Board Regular
Join Date: Mar 2002
Posts: 1,288
|
Quote:
Can you see it? Thanks |
|
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
It looks like the problem is that you have 2
"End With" , remove 1 and it should be fine James |
|
|
|
|
|
#9 | |
|
Board Regular
Join Date: Mar 2002
Posts: 1,288
|
Quote:
|
|
|
|
|
|
|
#10 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
Sorry, i didn't realize the 2nd "End With"
should have been End Sub, just type End Sub as the last line in the code James |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|