Les Isaacs
Registered User.
- Local time
- Today, 08:58
- Joined
- May 6, 2008
- Messages
- 186
Hi All
I have an access module that creates an excel file from a template and assigns various values to various cells, and it all works fine ... except that I would like to vary the font size and colour of the text in a particular cell.
So where I currently have:
range("V7").value = "NHS Pension Scheme" & vbCrLf & "Please enter all details"
I would like to have "NHS Pension Scheme" in black and size 12 but "Please enter all details" in red and size 10.
Obviously I realise that I could split the cell into two and set the font etc. in the template, but this would in fact need a lot of work as there are a lot of cell assignments, and subsequently a lot of importing from the excel file, using fixed cell addresses - which I would prefer to leave alone.
So, can I amend:
range("V7").value = "NHS Pension Scheme" & vbCrLf & "Please enter all details"
by adding fontsize and fontcolour parameters to the different text elements. Hope so
Many thanks for any help.
Les
I have an access module that creates an excel file from a template and assigns various values to various cells, and it all works fine ... except that I would like to vary the font size and colour of the text in a particular cell.
So where I currently have:
range("V7").value = "NHS Pension Scheme" & vbCrLf & "Please enter all details"
I would like to have "NHS Pension Scheme" in black and size 12 but "Please enter all details" in red and size 10.
Obviously I realise that I could split the cell into two and set the font etc. in the template, but this would in fact need a lot of work as there are a lot of cell assignments, and subsequently a lot of importing from the excel file, using fixed cell addresses - which I would prefer to leave alone.
So, can I amend:
range("V7").value = "NHS Pension Scheme" & vbCrLf & "Please enter all details"
by adding fontsize and fontcolour parameters to the different text elements. Hope so

Many thanks for any help.
Les