Font question

verluc

Well-known Member
Joined
Mar 1, 2002
Messages
1,451
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
 
On 2002-04-22 14:42, James wrote:
It looks like the problem is that you have 2
"End With" , remove 1 and it should be fine

James
Very,Very sorry,but it doesn't work.
What I want is that the text in Column A is on the left of the cell and not in the middle of on the right in the cell.
Thanks
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
On 2002-04-22 15:06, verluc wrote:
On 2002-04-22 14:42, James wrote:
It looks like the problem is that you have 2
"End With" , remove 1 and it should be fine

James
Very,Very sorry,but it doesn't work.
What I want is that the text in Column A is on the left of the cell and not in the middle of on the right in the cell.
Thanks
Sorry James,I have found the error.Now it works like I want that it works.
Many,Many thanks for your time.
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,314
Members
449,081
Latest member
tanurai

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top