Making a workbook visible
Posted
by
JoeB
on Stack Overflow
See other posts from Stack Overflow
or by JoeB
Published on 2012-09-23T03:28:54Z
Indexed on
2012/09/23
3:37 UTC
Read the original article
Hit count: 187
I have the following code:
Dim DumpXlApp As Excel.Application = New Excel.Application
Dim DumpWkBk As Excel.Workbook
DumpWkBk = System.Runtime.InteropServices.Marshal.BindToMoniker(FilePath)
DumpXlApp = DumpWkBk.Parent
DumpXlApp.Visible = True
I can't get the DumpWkBk workbook to become visible. Is the issue DumpXlApp = DumpWkBk.Parent
line? I don't think it is the BindToMoniker line because I can do things with DumpWkBk.
© Stack Overflow or respective owner