PC Review


Reply
Thread Tools Rate Thread

change formula dynamically

 
 
geebee
Guest
Posts: n/a
 
      20th Dec 2007
hi,

i have the following in a cell:

=pivot!$D$70
so the cell is formattd as a percentage, like 3.0%

i would like to know if there is a way i can change this dynamically using
VBA, so it would read like *3.0%

I tried sheets("sheetname").range("C1").formula = "*" & "=pivot!$D$70" but
this did not work.

Im not sure how to make this work.

Thanks in advance,
geebee


 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      20th Dec 2007
After the formula goes in:

sheets("sheetname").range("C1").NumberFormat = """*""0.0%"
--
Gary''s Student - gsnu200761


"geebee" wrote:

> hi,
>
> i have the following in a cell:
>
> =pivot!$D$70
> so the cell is formattd as a percentage, like 3.0%
>
> i would like to know if there is a way i can change this dynamically using
> VBA, so it would read like *3.0%
>
> I tried sheets("sheetname").range("C1").formula = "*" & "=pivot!$D$70" but
> this did not work.
>
> Im not sure how to make this work.
>
> Thanks in advance,
> geebee
>
>

 
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
How can I dynamically change a file link in a formula? =?Utf-8?B?R1RY?= Microsoft Excel Worksheet Functions 2 31st Oct 2007 10:21 PM
Dynamically Change date in Formula Midget Microsoft Excel Worksheet Functions 3 9th Feb 2007 02:35 AM
Using offset within a formula dynamically S Davis Microsoft Excel Worksheet Functions 6 28th Jul 2006 03:11 PM
Dynamically change cell range in formula by background color? albert@netmation.com Microsoft Excel Programming 1 9th Jan 2006 09:08 PM
change a formula dynamically Zuohong Microsoft Excel Misc 3 16th Nov 2004 08:42 AM


Features
 

Advertising
 

Newsgroups
 


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