Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您将如何将此公式=LEFT(A1,SEARCH("invoice",A1,1)-1)放入 VBA 中,以便此公式将放入临时工作簿单元格中?
=LEFT(A1,SEARCH("invoice",A1,1)-1)
像这样?
Dim oBook as Excel.workbook set oBook = workbooks.add oBook.sheets(1).range("B1").formula = "=LEFT(A1,SEARCH(""invoice"",A1,1)-1)" oBook.close
块水平滚动?