Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 390777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:59:51+00:00 2026-05-12T15:59:51+00:00

Fairly straightforward scenario, for which I can’t seem to find an answer anywhere :

  • 0

Fairly straightforward scenario, for which I can’t seem to find an answer anywhere:

  • I am using a Microsoft WebBrowser
    ActiveX control (AxSHDocVw.AxWebBrowser) in a Windows Forms
    application.
  • The WebBrowser control
    is used to display Excel workbooks in
    the application.
  • I can obtain a
    reference to the internal document as
    a
    Microsoft.Office.Interop.Excel.Workbook.
  • What I cannot seem to find, despite
    hours of searching the Web, is any
    reliable guidance on how to determine
    the range of cells currently selected
    by the end-user.

Here’s the problem. Since the sheet is displayed in the browser, it doesn’t have the Excel toolbar displayed, and I’d like to provide at least some rudimentary functionality (cut, copy, paste, undo, redo, bold, italic, underscore, left, right, center, and so on) from my application’s main window. In order to do that, I need to be able to forward those commands onto the active sheet. Some of those commands require knowledge of the currently selected range if I want to properly execute them.

If anyone knows how to do this, I would be forever in your debt. (Well, maybe not forever, but you get the point.)

[NOTE: I use the old ActiveX control so that I can trap the NavigateComplete2 event to capture the reference to the internal document. The .NET WebBrowser control doesn’t expose this functionality the same way.]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:59:52+00:00Added an answer on May 12, 2026 at 3:59 pm

    If you can get the workbook reference, you should be able to do .Application.Selection to get the current selected Range.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably fairly straightforward but i can't seem to find a reasonable explanation
I have a fairly straightforward question in Rails 3 to which I can't seem
I'm using the simple_form gem. I have a fairly straightforward scenario. I have a
Fairly simple issue which is solved in PHP by using a static variable. private
This seems like a fairly straightforward question, but I couldn't find this particular use-case
This should be a fairly straightforward question, but I haven't been able to find
This seems like a fairly straightforward question but I've been unable to find an
I have some fairly straightforward code to open up files using a Process object:
We use a fairly straightforward naming standard for indexes that I can validate programmatically,
I have a fairly straightforward and common use case. A panel, in which resides

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.