PC Review


Reply
Thread Tools Rate Thread

Code format question

 
 
David
Guest
Posts: n/a
 
      23rd Apr 2008
Hi Group,

Just for the life of me can not remember the code which I used in the past
to format combined variables. First Variable should be (Fixed,Comma,2) and
the second should be as a %. It is the Fixed, Comma, 2 I am having trouble
with. Done it before, just can't remember.

Thanks,
David
 
Reply With Quote
 
 
 
 
David
Guest
Posts: n/a
 
      24th Apr 2008
Hi Again,

I found the example where I hd used it before, but it was used in a formula.
Not a help.

"David" wrote:

> Hi Group,
>
> Just for the life of me can not remember the code which I used in the past
> to format combined variables. First Variable should be (Fixed,Comma,2) and
> the second should be as a %. It is the Fixed, Comma, 2 I am having trouble
> with. Done it before, just can't remember.
>
> Thanks,
> David

 
Reply With Quote
 
David
Guest
Posts: n/a
 
      24th Apr 2008
Stuck.
This what what I currently have:

ActiveCell.Offset(0, 2).Value = Wk4Avg & "/" & (Wk4AvgPer * 100) & "%"

and it puts this in the cell:
53.255/-2.27104339813363%

What I would like as the ending value is:
53.26/-2.27%

Any help would be appreciated.

Thanks,
David

"David" wrote:

> Hi Group,
>
> Just for the life of me can not remember the code which I used in the past
> to format combined variables. First Variable should be (Fixed,Comma,2) and
> the second should be as a %. It is the Fixed, Comma, 2 I am having trouble
> with. Done it before, just can't remember.
>
> Thanks,
> David

 
Reply With Quote
 
David
Guest
Posts: n/a
 
      24th Apr 2008
Got it. Now it seems so simple. Must be getting old, memory the first thing
to go?

"David" wrote:

> Hi Group,
>
> Just for the life of me can not remember the code which I used in the past
> to format combined variables. First Variable should be (Fixed,Comma,2) and
> the second should be as a %. It is the Fixed, Comma, 2 I am having trouble
> with. Done it before, just can't remember.
>
> Thanks,
> David

 
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
Question on this conversion code switching between r1c1 to A1 format tia sal2 temp Microsoft Excel Programming 2 14th Sep 2007 08:58 PM
Question on this conversion code switching between r1c1 to A1 format tia sal2 temp Microsoft Excel Misc 2 14th Sep 2007 08:58 PM
Question on this conversion code switching between r1c1 to A1 format tia sal2 temp Microsoft Excel Worksheet Functions 2 14th Sep 2007 08:58 PM
Compaction Code Question Acc2K3/2K format NoodNutt Microsoft Access Form Coding 2 17th May 2007 12:36 PM
Leo Heuser format cleanup code, and a question GatesAntichrist Microsoft Excel Programming 3 2nd Jul 2004 04:18 AM


Features
 

Advertising
 

Newsgroups
 


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