PC Review


Reply
Thread Tools Rate Thread

Changing Font Name in Function Sub

 
 
=?Utf-8?B?emhqMjM=?=
Guest
Posts: n/a
 
      30th Apr 2007
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.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TGV1bmc=?=
Guest
Posts: n/a
 
      30th Apr 2007
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.



"zhj23" wrote:

> 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.

 
Reply With Quote
 
=?Utf-8?B?emhqMjM=?=
Guest
Posts: n/a
 
      30th Apr 2007
Yes. It can be manually changed from the Font menu. But can't have the result
when embedded in the Function Sub.


"Leung" wrote:

> 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.
>
>
>
> "zhj23" wrote:
>
> > 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.

 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      30th Apr 2007
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

"zhj23" <(E-Mail Removed)> wrote in message
news:412DB795-B23F-4D8B-9062-(E-Mail Removed)...
> Yes. It can be manually changed from the Font menu. But can't have the

result
> when embedded in the Function Sub.
>
>
> "Leung" wrote:
>
> > 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.
> >
> >
> >
> > "zhj23" wrote:
> >
> > > 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.



 
Reply With Quote
 
=?Utf-8?B?emhqMjM=?=
Guest
Posts: n/a
 
      30th Apr 2007
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

"NickHK" wrote:

> 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
>
> "zhj23" <(E-Mail Removed)> wrote in message
> news:412DB795-B23F-4D8B-9062-(E-Mail Removed)...
> > Yes. It can be manually changed from the Font menu. But can't have the

> result
> > when embedded in the Function Sub.
> >
> >
> > "Leung" wrote:
> >
> > > 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.
> > >
> > >
> > >
> > > "zhj23" wrote:
> > >
> > > > 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.

>
>
>

 
Reply With Quote
 
=?Utf-8?B?TGV1bmc=?=
Guest
Posts: n/a
 
      30th Apr 2007
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.



"zhj23" wrote:

> 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
>
> "NickHK" wrote:
>
> > 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
> >
> > "zhj23" <(E-Mail Removed)> wrote in message
> > news:412DB795-B23F-4D8B-9062-(E-Mail Removed)...
> > > Yes. It can be manually changed from the Font menu. But can't have the

> > result
> > > when embedded in the Function Sub.
> > >
> > >
> > > "Leung" wrote:
> > >
> > > > 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.
> > > >
> > > >
> > > >
> > > > "zhj23" wrote:
> > > >
> > > > > 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.

> >
> >
> >

 
Reply With Quote
 
=?Utf-8?B?emhqMjM=?=
Guest
Posts: n/a
 
      30th Apr 2007
OK. Thanks. I will try.

zhj23

"Leung" wrote:

> 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.
>
>
>
> "zhj23" wrote:
>
> > 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
> >
> > "NickHK" wrote:
> >
> > > 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
> > >
> > > "zhj23" <(E-Mail Removed)> wrote in message
> > > news:412DB795-B23F-4D8B-9062-(E-Mail Removed)...
> > > > Yes. It can be manually changed from the Font menu. But can't have the
> > > result
> > > > when embedded in the Function Sub.
> > > >
> > > >
> > > > "Leung" wrote:
> > > >
> > > > > 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.
> > > > >
> > > > >
> > > > >
> > > > > "zhj23" wrote:
> > > > >
> > > > > > 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.
> > >
> > >
> > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing default Font and Font Size cap10 Windows Vista Mail 1 3rd Feb 2010 01:04 PM
Changing Font color based on font type or size John Microsoft Excel Misc 2 7th Feb 2008 12:50 AM
Changing row height in a data grid without changing font size =?Utf-8?B?S2FzZXk=?= Microsoft C# .NET 1 30th Jun 2006 12:20 AM
Changing Font with Function Dan McCollick Microsoft Excel Programming 5 10th Oct 2005 05:54 PM
changing font style in a complex worksheet function =?Utf-8?B?Z3Zt?= Microsoft Excel Worksheet Functions 6 3rd Aug 2005 01:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:30 PM.