oso_togari
New Member
- Joined
- Sep 1, 2016
- Messages
- 20
Hello all
im making a VBS to manipulate excel file..
in one part i fill cells with formulas:
objexcel.Range("B2").formula = "=espacios(A2)"
objExcel.Range("B2","B" & ws.Cells(ws.Rows.Count, 1).End(xlUp).Row).FillDown
but in the excel the formulas appears with "@" preceeding the function.
if i manually delete the "@" in the excel it works as expected...but i want to know how to replace in vbs
im using:
objExcel.Range("B:D").Replace "@","
and
objExcel.Range("B:D").Replace "@","",,,,,,1
objExcel.Range("B:D").Replace "@","",,,,,,xlreplceformula2 (this come from a macro recording)
but no luck...any ideas?
im making a VBS to manipulate excel file..
in one part i fill cells with formulas:
objexcel.Range("B2").formula = "=espacios(A2)"
objExcel.Range("B2","B" & ws.Cells(ws.Rows.Count, 1).End(xlUp).Row).FillDown
but in the excel the formulas appears with "@" preceeding the function.
if i manually delete the "@" in the excel it works as expected...but i want to know how to replace in vbs
im using:
objExcel.Range("B:D").Replace "@","
and
objExcel.Range("B:D").Replace "@","",,,,,,1
objExcel.Range("B:D").Replace "@","",,,,,,xlreplceformula2 (this come from a macro recording)
but no luck...any ideas?