+ Reply to Thread
Results 1 to 6 of 6

Can't display code

  1. #1
    sheila_d_pratt
    Guest

    Can't display code

    Hi,

    When I go back to my file, I can't see the code that I've written. I know
    it's still there, because the workbook will execute properly. I go to the
    code view and still can't see it. I'm new to VBA, so I must be missing
    something very obvious.

    Thanks
    --
    sheila

  2. #2
    Don Guillett
    Guest

    Re: Can't display code

    a private module or a private sub can't be viewed.

    --
    Don Guillett
    SalesAid Software
    donaldb@281.com
    "sheila_d_pratt" <sheiladpratt@discussions.microsoft.com> wrote in message
    news:99542B35-BC92-443D-B3A5-E6D2BB4C93F2@microsoft.com...
    > Hi,
    >
    > When I go back to my file, I can't see the code that I've written. I know
    > it's still there, because the workbook will execute properly. I go to the
    > code view and still can't see it. I'm new to VBA, so I must be missing
    > something very obvious.
    >
    > Thanks
    > --
    > sheila




  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645
    How are you trying to view the code?

    Try ALT+F11 to open the VBA editor and check all the modules in the Project Explorer.

  4. #4
    sheila_d_pratt
    Guest

    Re: Can't display code

    Thanks Don, but how do I change or delete the code if it can't be viewed?

    Sheila

    "Don Guillett" wrote:

    > a private module or a private sub can't be viewed.
    >
    > --
    > Don Guillett
    > SalesAid Software
    > donaldb@281.com
    > "sheila_d_pratt" <sheiladpratt@discussions.microsoft.com> wrote in message
    > news:99542B35-BC92-443D-B3A5-E6D2BB4C93F2@microsoft.com...
    > > Hi,
    > >
    > > When I go back to my file, I can't see the code that I've written. I know
    > > it's still there, because the workbook will execute properly. I go to the
    > > code view and still can't see it. I'm new to VBA, so I must be missing
    > > something very obvious.
    > >
    > > Thanks
    > > --
    > > sheila

    >
    >
    >


  5. #5
    Forum Contributor
    Join Date
    01-11-2004
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    388
    Hi!

    Can you remember a word or range or something in your code?
    If so, use Find from any of the code modules, checking Current Project.
    Should find it.

    If not: can you tell us how you wrote your code? How did you get to a module to do it? Anything you did thereafter...

    Alf
    Last edited by AlfD; 03-07-2005 at 05:53 PM.

  6. #6
    Don Guillett
    Guest

    Re: Can't display code

    try alt f11

    --
    Don Guillett
    SalesAid Software
    donaldb@281.com
    "sheila_d_pratt" <sheiladpratt@discussions.microsoft.com> wrote in message
    news:329CA565-C249-4E7E-866D-748CCE17DAD1@microsoft.com...
    > Thanks Don, but how do I change or delete the code if it can't be viewed?
    >
    > Sheila
    >
    > "Don Guillett" wrote:
    >
    > > a private module or a private sub can't be viewed.
    > >
    > > --
    > > Don Guillett
    > > SalesAid Software
    > > donaldb@281.com
    > > "sheila_d_pratt" <sheiladpratt@discussions.microsoft.com> wrote in

    message
    > > news:99542B35-BC92-443D-B3A5-E6D2BB4C93F2@microsoft.com...
    > > > Hi,
    > > >
    > > > When I go back to my file, I can't see the code that I've written. I

    know
    > > > it's still there, because the workbook will execute properly. I go to

    the
    > > > code view and still can't see it. I'm new to VBA, so I must be

    missing
    > > > something very obvious.
    > > >
    > > > Thanks
    > > > --
    > > > sheila

    > >
    > >
    > >




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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