MFC list form content in output to EXCEL, the last column need to be set to hyperlinks, download the code from the CSDN resources, since the code is not complete, not adjustable, want to ask next this setting anyway?
Here are online to download code:
Put a hyperlink// Cstrings cc.//hyperlinks ¨ address Cc=_T (" http://www.baidu.com/index.php? Tn=maxthon2 & amp; Ch=3 ");// Range. AttachDispatch (sheet. GetRange (_variant_t (_T (" C2 ")), _variant_t (_T (" C2 "))));//get area Links. AttachDispatch (range. GetHyperlinks ());//get the Hyperlinks object The links. The Add (range, cc, _variant_t (_T (" ")), _variant_t (_T (" ")), _variant_t (_T (" ")));//set the hyperlink
CodePudding user response:
How do the following VBA is converted into c + + code
VBA code is: Sub hong1 ()
ActiveSheet. Hyperlinks. Add Anchor:=Selection, Address:= "D: \ work \ 0. JPG", _ TextToDisplay:=_ "D: \ work \ 0. JPG", R17 Range (" "). Select