• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 568
  • Last Modified:

embed a VC6 application in an EXCEL spreadsheet cell

I am using EXCEL 2003.   In my spreadhseet, I have a macro that launches a VC6.0 application (via a button click in on of my spreadsheet cells, that calls the Shell(AppName.exe....) function.
So, my VC6 app displays on top of my spreadsheet.  This is fine.  

But, what I'd really like to do is to embed my VC6 app within one of the spreadsheet cells.   By doing so, I think my spreadsheet will look more polished, as the VC6 app will look "contained" within a cell, instead of just sitting on top of the spreadsheet.

Any thoughts on how to accomplish this would be greatly appreciated.

  • 2
  • 2
2 Solutions
Rory ArchibaldCommented:
You cannot embed objects within Excel cells - they will always sit in the drawing layer above the sheet.

Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:

if you "embed" the VC6 app in a cell, how do you want to launch it? When the cell gets selected?

You could use a Worksheet Selection_Change event for that.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("A1")) Is Nothing Then

' launch VC6 app

End If

End Sub

Open in new window

cheers, teylyn
cjm20Author Commented:
If my VC6 app was embedded, I could either continue to laucnh it via the button click macro I have in my VBA code, or in a macro that fires when the worksheet is made active.  Either way though, i'd want the VC6 app to be within the borders of a cell (such that the app couldn't be dragged out of the cell, nor would the app extend beyond the cell boundries if the EXCEL worksheet was resized.
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Ah, I see what you mean. As rorya said above, Excel does not work that way. Cells can only hold formulas or values.
cjm20Author Commented:
Well, it seems unanimous then.  it can't be done.  It was worth a shot.  :)

I want to split the points to both of you for trying.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now