vba - getting null when reading cell value using excel macro -
i have sheet pivot tables used. manipulated sheet , kept 4 columns data , rest hidden. copied data sheet, sorted it. above working fine macro.
once sort happens, trying read cell value check if value positive, copy 4 columns data of row row. problem have is, though there value string or double in these columns, cells(row, column).value returning empty or 0.
my data copied pivot table follows:
snapshotbeforesort sorted data using macro , gives me output follows: customer effort value budget value total value table snapshot
now need delete rows have total value(4th column) 0.0, copy data in 4 columns row if total value > 0 or <0.
to 4th column value, used following code: printing time being have check t value > or < 0.
dim t double t = cells(2,4).value msgbox t
the value returned 0. if tried value in first column(customer), declaring t string, returning empty strin. please in reading right value. thank in advance
Comments
Post a Comment