LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default How do I do a VBA comparison to a financial value (i.e. $10000)

It's been a while since I've used VBA. How do I do a
comparison with a financial value?

I have the following, but no matter what the value
of the cell this puts a 1 into the active cell.

If ActiveCell.Offset(0, -1).Value "$10,000" Then
ActiveCell.Value = 1
End If

But, no matter what the value of the
ActiveCell.Offset(0, -1).Value
this puts a 1 into the active cell, when I only want a 1
when the ActiveCell.Offset(0, -1).Value is $10,000

Thanks,

Norm

How do I do a VBA comparison to a financial value (i.e. $10000)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
COUNTIF calculates slow (10000+ records) VidarHe Excel Worksheet Functions 4 June 19th 09 01:16 PM
preparation of financial performance and financial position ? kay New Users to Excel 1 March 19th 09 07:22 AM
take out comma ID, 10000 to ID 100000 in column Annette Excel Discussion (Misc queries) 3 November 21st 05 04:43 PM
divide values by 10000 danielpaval New Users to Excel 2 October 6th 05 04:57 PM
When I type in 100 a 1 appears, 10000 and 100 appear AndyB Excel Discussion (Misc queries) 2 May 14th 05 08:17 PM


All times are GMT +1. The time now is 12:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"