Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub Makro1()
Workbooks.Add
Range("F9").AddComment
Range("F9").Comment.Visible = False
Range("F9").Comment.Text Text:="username:" & Chr(10) & "test"
End Sub
* first the unavoidable creation of an excel application object:
oExcel = CreateObejct("Excel.Application")
* and a new workbook, as the macro does:
oExcel.Workbooks.Add()
* Now first create a range object as used in the recorded macro:
oRange = oExcel.Workbooks(1).Sheets(1).Range("F9")
* now we can continue as in the recorded macro:
oRange.AddComment()
oRange.Comment.Text("test")
* take a look at the result:
oExcel.visible = .t.
oExcel = CreateObject("Excel.Application")
oExcel.Workbooks.Add()
oExcel.ActiveWorkbook.VBProject.VBComponents([ThisWorkbook]).CodeModule.AddFromFile("D:\BCSQuot\DLL\CommentImage.txt")