+ Reply to Thread
Results 1 to 14 of 14

How do I delete a VBA project?

  1. #1
    Registered User
    Join Date
    12-25-2012
    Location
    Los Angeles
    MS-Off Ver
    Officel 2013
    Posts
    86

    How do I delete a VBA project?

    This is driving me crazy How do I remove the empty, unused "Chart3" project form the list below?

    Image1.jpg

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,379

    Re: How do I delete a VBA project?

    Hi Jeff,

    Look at your sheet tabs (not in VBA) and delete the tab/sheet that is the Chart Sheet.
    Sorry if that doesn't work. Stuff seems so simple when you know how and hard when you/we don't...
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: How do I delete a VBA project?

    Assuming you want the actual chart sheet in your workbook you will not be able to remove it from the project view.

    Chart objects, like sheet objects, have events. The object is automatically included in the properties window. But there will be no actual code unless you open and edit the object.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    12-25-2012
    Location
    Los Angeles
    MS-Off Ver
    Officel 2013
    Posts
    86

    Re: How do I delete a VBA project?

    Thanks for the replies. Unfortunately life isn't that easy, at least for me

    This spread sheet does not have a Chart3 or even a Chart2.

    In the beginning, I had a workbook that with the help of my VBA would build either of two charts depending on which button was clicked on a control page.

    I wanted to separate the two charts into two workbooks. I made two copies of the original (the one that could do both charts), and modified each to only create one chart, but both still appear under VBA projects.

    There is now only one chart per workbook. There are no tabs for the one that no longer exists, but it still appears in the VBA project list.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,970

    Re: How do I delete a VBA project?

    Look at the sheet properties in the VBE properties pane and check if VISIBLE is set to "2 - xlSheetVeryHidden". If so, reset to Visible, then...
    Ben Van Johnson

  6. #6
    Registered User
    Join Date
    12-25-2012
    Location
    Los Angeles
    MS-Off Ver
    Officel 2013
    Posts
    86

    Re: How do I delete a VBA project?

    I don't know if I looked in the right place. There are 4 sheets including the one chart that I want. I clicked on Developer - Properties for each one. They all show xlvisable.

  7. #7
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: How do I delete a VBA project?

    Quote Originally Posted by protonLeah View Post
    Look at the sheet properties in the VBE properties pane and check if VISIBLE is set to "2 - xlSheetVeryHidden". If so, reset to Visible, then...
    Thanks for the tip, Ben! Always wonder where to locate the veryhidden sheets.

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: How do I delete a VBA project?

    Look in: Developer > Visual Basic > View > Properties Window.

  9. #9
    Registered User
    Join Date
    12-25-2012
    Location
    Los Angeles
    MS-Off Ver
    Officel 2013
    Posts
    86

    Re: How do I delete a VBA project?

    Quote Originally Posted by josephteh View Post
    Look in: Developer > Visual Basic > View > Properties Window.
    That worked! Chart3 was hidden. Once I made it visible, I was able to delete the tab and it went away in the projects list.

    I tired it on the nonexistent Chart2, but "Visible" is not in the Properties list.
    Image1.jpg
    Last edited by JeffLeites; 12-04-2022 at 11:21 AM.

  10. #10
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: How do I delete a VBA project?

    Your attachment is not valid.

  11. #11
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: How do I delete a VBA project?

    Jeff look at the picture you posted.
    Where it shows (Name) in your picture the box to the right shows the name of what you are viewing the properties of.
    Your picture shows ThisWorkbook next to name.

  12. #12
    Registered User
    Join Date
    12-25-2012
    Location
    Los Angeles
    MS-Off Ver
    Officel 2013
    Posts
    86

    Re: How do I delete a VBA project?

    Quote Originally Posted by skywriter View Post
    Your picture shows ThisWorkbook next to name.
    I didn't notice that when I posted.

    All of the other projects show the project name next to "Name" in the properties window (like the one below). Chart2 shows the Workbook properties. Why is that?
    Attached Images Attached Images
    Last edited by JeffLeites; 12-04-2022 at 10:20 PM.

  13. #13
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: How do I delete a VBA project?

    Again unable to open your attachment. Please see the yellow banner at the top on how to attach workbook.

  14. #14
    Registered User
    Join Date
    12-25-2012
    Location
    Los Angeles
    MS-Off Ver
    Officel 2013
    Posts
    86

    Re: How do I delete a VBA project?

    Quote Originally Posted by josephteh View Post
    Again unable to open your attachment. Please see the yellow banner at the top on how to attach workbook.
    It's not a workbook, it's a picture of the properties window. I don't know why your are having a problem, they all appear in line wherever I've posted them in this thread.

    I just noticed that I did have an attachment in one post. It was unintentional, I only meant to post a picture of the properties. I deleted the attachment.
    Last edited by JeffLeites; 12-04-2022 at 10:23 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 08-11-2017, 03:10 AM
  2. Replies: 1
    Last Post: 06-12-2017, 09:20 PM
  3. [SOLVED] Delete old items in VBA project
    By marciopf in forum Excel General
    Replies: 4
    Last Post: 04-11-2016, 09:10 AM
  4. [SOLVED] Delete projects in project window
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2015, 05:52 PM
  5. WHy do i have the identical project in macro, how to delete them?
    By ml7777777 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2014, 04:30 PM
  6. [SOLVED] How to delete modules within a project
    By LaffyAffy13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2013, 03:26 PM
  7. Delete Sheets in VBA Project
    By Frank Rudd via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-26-2005, 02:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1