Hi there!
I'm using the following code:
There is a formula in the cell already, but I guess since it shows up false, it sets it as "#VALUE!"![]()
Please Login or Register to view this content.
Any help is appreciated! THANKS!!
Hi there!
I'm using the following code:
There is a formula in the cell already, but I guess since it shows up false, it sets it as "#VALUE!"![]()
Please Login or Register to view this content.
Any help is appreciated! THANKS!!
Try this:
Note: I renamed your rows variable as rows is already an Excel property and I changed the data type to Long rather than integer since there are more rows in a sheet than an integer can cope with.![]()
Please Login or Register to view this content.
Last edited by romperstomper; 08-18-2010 at 04:09 PM.
Everyone who confuses correlation and causation ends up dead.
Another alternative based on your assertion the cells contain formulae
![]()
Please Login or Register to view this content.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Ah it worked!
THANKS!!
(By the way, you had still left the "rows=sheets(sheet3)...." instead of changing it to lngrows which screwed everything up and then I saw it and changed it).
THANKS!!!!!
don't know what you mean...![]()
Nevermind. It was my mistake actually.
I was joking - I went back and edited the post.![]()
Hi.
I have a vba macro that automates a lot of this and was wondering when taking out the #VALUE! values in the cells, it deletes the formula's too. And I tried adding this line to the vba code before it dealt with that column:
Range("AR2").Formula = "=DATEVALUE(MID(TRIM($U2&" "&$U2),FIND("^^",SUBSTITUTE(TRIM($U2&" "&$U2)," ","^^",CHOOSE(COLUMNS($AR2:AR2),2,5)))+1,2)&MID(TRIM($U2&" "&$U2),FIND("^^",SUBSTITUTE(TRIM($U2&" "&$U2)," ","^^",CHOOSE(COLUMNS($AR2:AR2),1,4)))+1,3))"
but it keeps giving me an error because of the " " and ^^
Any way to fix this?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks