Hello I'm trying to add a white space into a excel formula with vba my code is this:
.Cells(row, col).Value = "=if(A1=0," & " " & ",'S1'!$D$1)"
this code add to my cell in excel this formula
=if(A1=0, ,'S1'!$D$1)
but I want something like this
"=if(A1=0," ",'S1'!$D$1)"
is this possible to do in vba ?
.Cells(row, col).Value = "=if(A1=0,"" "",'S1'!$D$1)"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.