Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Excel Errors / December 2007

Tip: Looking for answers? Try searching our database.

Macro error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
orquidea - 20 Dec 2007 00:19 GMT
Hi All:

I want to get the result in saskour20per as a percentage.  I wrote the below
procedure which is generating the error "invalid qualifier".

   Saskour20per.Value = (saskour20 / sask20)
   Saskour20per.NumberFormat = "0.00%"

Could anyone help me to debug this macro?

Thanks in advance
Orquidea
Gary''s Student - 22 Dec 2007 12:34 GMT
Your code will work if Saskour20per is a Range variable that has been
assinged a value.  The values of the numerator and denominator must also be
established as well.  Something like:

Dim Saskour20per as Range
Set Saskour20per=Range("A1")
Saskour20per.Value = (saskour20 / sask20)
Saskour20per.NumberFormat = "0.00%"

Signature

Gary''s Student - gsnu200761

> Hi All:
>
[quoted text clipped - 8 lines]
> Thanks in advance
> Orquidea
orquidea - 22 Dec 2007 19:24 GMT
thanks for your answer.

> Your code will work if Saskour20per is a Range variable that has been
> assinged a value.  The values of the numerator and denominator must also be
[quoted text clipped - 17 lines]
> > Thanks in advance
> > Orquidea
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.