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 4051124
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:09:20+00:00 2026-05-20T14:09:20+00:00

I need some suggestion on how to query a VISIO Shape.cells collection in vb

  • 0

I need some suggestion on how to query a VISIO Shape.cells collection in vb or vba.

I have written an application to drop a shape on a page and I can change its name after dropping it on the page. Now I want to examine the shape cells collection.

Thanks

  • 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-20T14:09:21+00:00Added an answer on May 20, 2026 at 2:09 pm

    Visio shape cells are broken up into different sections. Such sections might include User Cells, Actions, or Character settings. There are also a series of named cells that you can only (I think) access through the name (i.e. PinX or PinY).

    So to query a shape’s cells, you first have to figure out what section of cells you’re talking about. To loop through a cell section, you first get the number of rows in the section, then loop through that section using the CellsSRC method on the shape object.

    Dim TheShp As Visio.Shape
    Set TheShp = ActiveWindow.Selection.Item(1)
    Dim TheSec As Visio.Section
    Dim TheCell As Visio.Cell
    Set TheSec = TheShp.Section(visSectionUser)
    Dim RowNum As Long
    For RowNum = 0 To TheSec.Count - 1
        Set TheCell = TheShp.CellsSRC(visSectionUser, RowNum, 0)
        Debug.Print TheCell.Formula
        Debug.Print TheCell.Result(visNone)
    Next CellNum
    

    Looping in this way can be slow if there are a lot of cells in a lot of shapes. If you need to access the formulas or results of a large number of cells, there are GetFormulas and GetResults methods on the Page object that take arrays of SRC values and shape ID’s that will pull all those Formulas/Results at the same time.

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

Sidebar

Related Questions

Need some help from javascript gurus. I have one page where http://www.google.com/finance/converter is embedded
Need some help with a query.. I have three tables. Source id name 1
I need some help figuring out a query I have 3 tables sources id,
I need some suggestion on how to work this around. I have an Ajax
Need some help, please. I have a line of horizontal thumbnails loaded as ONE
Need some help to solve this. I have a gridview and inside the gridview
Need some best practice advice here... Navigation based application. Root view is a UITableView
I am making some paging, and I need to make some query and get
Hoping I can get some architectural advice on this. I have been given the
I have a simple WPF application I'm working on, which performs a SQL query

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.