Changing Font Name in Function Sub

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wrote a Function Sub with alphbet letters as output, but wish to change
this output to greek symbols. These are my codes:

with activecell
.font.name="symbol"
end with

It doesnt work. Can anyone correct it for me? Many thanks.
 
The coding is OK to run on my PC.

Are you sure the user get the correct Symbol font?

Can it be manually changed? if yes, it should be OK.
 
Yes. It can be manually changed from the Font menu. But can't have the result
when embedded in the Function Sub.
 
If you are trying to write a worksheet function to achieve this, it will
fail.
You can only return a value to a cell, not change the Excel environment.

NickHK
 
Thanks. I guess that must be the reason why I fail. Looks like I have to give
up that idea and change the font manually.

zhj23
 
Hi

I believe it works if you set it as macro or a Sub in VBA.

But worksheet function is not the correct way to do that.
 
OK. Thanks. I will try.

zhj23

Leung said:
Hi

I believe it works if you set it as macro or a Sub in VBA.

But worksheet function is not the correct way to do that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top