使用VBA-构build一个代码,根据input或select的信息在Excel中,将自动填充一个句子
使用VBA-构build一个代码,根据input或select的信息在Excel中,将自动填充一个句子。
例如…
在Excel中:
Question Answer What is his Name? John How many apples did he buy? 8 How much did the apples cost? 50
在Word中:
John bought 8 apples totalling $ 50 dollars.
根据答案栏(Excel电子表格)中input的信息,我想要一个Word文档自动生成一个句子。
这可能吗?
谢谢,Metfan755
(伪代码)的一些东西:
dim writing as string writing=Sheets("x").Cells(y, z) Set objWord = CreateObject("Word.Application") objWord.Visible = True Selection.InsertAfter (writing)
也许?
添加你需要写的句子的其他部分