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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:36:05+00:00 2026-05-15T23:36:05+00:00

Using Excel 2007 VBA Have a sheet Dashboard, have other sheets but some special

  • 0

Using Excel 2007 VBA

Have a sheet “Dashboard”, have other sheets but some special task sheets that can be anywhere in the book, but will always be found between Sheets “TaskNew” and “TaskEnd”. These special task sheets will vary in count.

Upon dashboard activation, want to populate the listbox with the names of all special task sheets, so that user can select a sheet form drop down and navigate to that sheet.

Following results in runtime error ‘438’ Object doesn’t support this property or method:

Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True

Dim StartIndex As Integer
Dim EndIndex As Integer
Dim LoopIndex As Integer
'Dim sht As Worksheet
StartIndex = Sheets("TaskNew").Index + 1
EndIndex = Sheets("TaskEnd").Index - 1
For LoopIndex = StartIndex To EndIndex
    'SheetsNavigationDropDown.AddItem Sheets(LoopIndex).Name
    'Sheets("Dashboard").ListBox20.AddItem Sheets("Sample").Name
    Sheets("Dashboard").ListBox20.AddItem Sheets(LoopIndex).Name
Next LoopIndex

I have tried it also as just ListBox20.AddItem … but still doesn’t work. Yes, ListBox20 exists on Sheets(“Dashboard”), yes I edited it’s name to eliminate spaces.

It chokes on/highlights the Sheets(“Dashboard”).List…. line when debugging.

Ideas?

  • 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-15T23:36:05+00:00Added an answer on May 15, 2026 at 11:36 pm

    Sorry, answered my own question, key was to switch to an activex form element instead of regular.

    Sheets("Dashboard").TaskSheetsComboBox.Clear
    Dim StartIndex As Integer
    Dim EndIndex As Integer
    Dim LoopIndex As Integer
    StartIndex = Sheets("TaskNew").Index + 1
    EndIndex = Sheets("TaskEnd").Index - 1
    For LoopIndex = StartIndex To EndIndex
        Sheets("Dashboard").TaskSheetsComboBox.AddItem Sheets(LoopIndex).Name
    Next LoopIndex
    
    Private Sub TaskSheetsComboBox_Click()
        Sheets(Sheets("TaskNew").Index + TaskSheetsComboBox.ListIndex + 1).Activate
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem creating new instance of excel 2007 using VBA (from Access 2002).
using Excel 2007 and VBA 6.5 I'm trying to automate a data collection task,
I am using Excel 2007 with a workbook that has many sheets. I need
I want to run a VBA script from Excel 2007 that can switch focus
I have an Excel add-in that I developed using Excel 2007 SDK, it works
I have written a few Excel 2003/2007 add-ins using VSTO, and I usually end
I'm using Excel VBA and have a worksheet_change event like so: Private Sub Worksheet_Change(ByVal
In Excel VBA, I am using Excel as datasource for some queries. I am
Using Access 2007 vba addressing an Excel 2007 workbook (WB).... This routine adds a
I have a problem with some excel code that I am having trouble getting

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.