larissalle
Technical User
I have a range of cells that are in $##,###.00 format. I need the cells to be in thousandths format, i.e., instead of $16,400.00, it should be $0.16 instead. I tried naming the range and creating a loop that loops through the range and divides each cell by 1000, but it doesn't work due to a type mismatch on line 2. Says that Item should be a variant or object. I'm pretty good at debugging, but writing code is still new to me.
Code:
name the range in the excel file as "Range", then:
1 Dim Item as Double
2 For Each Item in Worksheet.Cells("Range"
3 Item = Item/1000
4 Next Item
Help!!
Larissalle
Code:
name the range in the excel file as "Range", then:
1 Dim Item as Double
2 For Each Item in Worksheet.Cells("Range"
3 Item = Item/1000
4 Next Item
Help!!
Larissalle