Windows 10: no longer can view the VB code.

Discus and support no longer can view the VB code. in Microsoft Office and 365 to solve the problem; Windows 10 Excel 2016 no longer can view the Visual Basic code. I cannot get past this screen; when I choose View and then code nothing happens. [img]... Discussion in 'Microsoft Office and 365' started by jalea148, Jul 16, 2019.

  1. jalea148 Win User

    no longer can view the VB code.


    Windows 10 Excel 2016 no longer can view the Visual Basic code. I cannot get past this screen; when I choose View and then code nothing happens.
    no longer can view the VB code. [​IMG]


    :)
     
    jalea148, Jul 16, 2019
    #1

  2. VBS Msgbox

    Denis,

    • I was too lazy to compute the size programmatically. And, it the 2005 version the message box always came up hidden, so I always used 0 for the top. It's also part of my OCD to be able to control everything.
    • I personally don't need it to timeout. I used this in vbs files to ask to continue to the next step, skip the next step or cancel the vbs. BTW, I added the code back in but keep it assign it to 0.
    • Sound was calling Windows Media Player: WshShell.Run "C:\Users\donast\desktop\sndrec32.lnk",7,false the lnk is a shortcut on my old desktop that had: "C:\Program Files (x86)\Windows Media Player\wmplayer.exe"
      "C:\Users\Public\Music\Wavefiles\Twilight.wav"
    • Yes. The value is the number of the button in the order specified when calling it.
    • Never really thought about it as all my VBS/VBA code is relatively simple and I add comments in the file as necessary to remind me what is going on. I don't usually have anyone to share my code.
    FYI I use a VBS to call it. Here's a line from a test vbs I use to run your version:

    choice=Wshshell.run("custommsgbox.vbs " & wscript.scriptname & " ""CopyFiles.vbs done. Continue with UnArchVista.vbs?"" ""White"" ""Black"" 40 ""Yes"" ""No"" ""Cancel""",1,true)

    Copy it to a text editor to see all the spaces, etc. Took me a while back the to figure it out.

    Don
     
    DRARetired, Jul 16, 2019
    #2
  3. Oliver_FF Win User
    Vb 08 Help Needed

    I haven't used VB in quite a few years but this is how i remember it:

    In code view, looking at code for the current form your working on there are two drop down menu's at the top just above your code. The left one lists all the objects on your form. The right one lists all of the methods/functions/subroutines you can use for the object selected to the left.

    So, to write a mouseover event for a button, select Button1 (or whatever you called the button) from the left menu, then look in the right menu for something like OnMouseOver - take a good look there might be something closer to what you really want, i remember there being quite a few of them. Once you've picked it the empty method/function/subroutine should appear in your code window ready for you to type in it.
     
    Oliver_FF, Jul 16, 2019
    #3
  4. no longer can view the VB code.

    Getting folder names and not location in VB .Net

    Hey guys,
    I'm getting a problem with my line of code and can't seem to find a workaround that works (all I can find is VB 6)

    Code: CheckedListBox1.Items.AddRange(IO.Directory.GetDirectories("my directory here"))[/quote] This deposits all folders locations into a list box but I only need the actual folder name
    e.g:

    Deposits: C:\Users\Onafets
    But all I want is "Onafets"

    Is there any way to do this?

    cheers
     
    <<Onafets>>, Jul 16, 2019
    #4
Thema:

no longer can view the VB code.

Loading...
  1. no longer can view the VB code. - Similar Threads - longer view code

  2. task view no longer works

    in Windows 10 Customization
    task view no longer works: task view used to show programs that I have opened on different days now it only shows the one that is open https://answers.microsoft.com/en-us/windows/forum/all/task-view-no-longer-works/e1e354d7-e254-4699-9743-4f68e9e505a6
  3. VB

    in Windows 10 Software and Apps
    VB: How to inside o visual basic 2019 achieve the horizontal scroll with the mouse wheel. I did it with a modifier key and the mousewheel event but only work when i move the wheel down... HELP, please....
  4. no longer can view the VB code.

    in Windows 10 Support
    no longer can view the VB code.: Windows 10 Excel 2016 no longer can view the Visual Basic code. I cannot get past this screen; when I choose View and then code nothing happens. [img] 136731
  5. Can no longer view videos on my computer

    in Windows 10 Software and Apps
    Can no longer view videos on my computer: Can no longer view videos om my computer with windows 10 home * Moved from Vista https://answers.microsoft.com/en-us/windows/forum/all/can-no-longer-view-videos-on-my-computer/e85e1458-7911-4382-977d-12d629b1503c
  6. VB 2008

    in Windows 10 BSOD Crashes and Debugging
    VB 2008: HO INSTALLATO IL SOFT DI VISUALBASIC 8 (2008) SU WINDOWS 10 X64,ho provato a eseguire una procedura con la cponnessione dati un file di access, quando ho effettuato il debug mi appare l'avviso"si è verificato System.InvalidOperationException Messasggio="il provider...
  7. VB and MS Access

    in Windows 10 Software and Apps
    VB and MS Access: Situation. I have done a datagridview to show in VB form which I can edit the filed I want. 1 of the field is a checkbox column from Access, how to check in datagridview and prompt another form? Let say frmapprove.show() in this form frmapprove.show() there is listbox,...
  8. Reading View App No Longer Works

    in Windows 10 Software and Apps
    Reading View App No Longer Works: I absolutely loved the Windows 10 reading view app, but it doesn't seem to work on many sites. Since the last Windows 10 upgrade, it no longer works on sites it worked on previously. Is there anyway to get it back? Please fix this to work on all sites as it is a great feature...
  9. Can no longer print

    in Windows 10 Drivers and Hardware
    Can no longer print: I have lost the ability to print anything from any app. I even bought a new printer but it does the same thing. The first printer is an older printer but it copies and scans along with printing. I can still copy and scan but not print. The new one is just a printer. I've...
  10. Can No Longer View Two windows at once

    in Windows 10 Support
    Can No Longer View Two windows at once: Until recently, if I wanted to minimize a window or resize it, I only needed to click the tiny square in the upper right corner. I could have two windows open on my desktop at the same time (viewing both and transferring information from one to the other.) I can no longer do...