Good day:
I created the following code for my Grade 4 computer students:
I am using Chrome. I simply wrote the code in a text file and changed the filename to "filename.html"
Why doesn't it work please? Thank you.
<HTML>
<HEAD>
<SCRIPT LANGUAGE="vbscript">
Sub cmdButton1_OnClick...
Thank you PHV:
I made a mistake. I meant to put "App_DocumentBeforeSave".
My real question is how do I get the code to run when I save? The code does not fire at all. I have not done this vb stuff in years. I have to somehow instantiate the class1 module, but I don't know how.
Hi jges:
Thank you for pointing me in the right direction.
I found this code that is placed into Class1.
How do I get it to run when the save button is pressed please?
Thank you,
Public WithEvents App As Word.Application
Private Sub App_DocumentBeforePrint(ByVal Doc As Document, Cancel As...
Good day:
Is it possible to have multiple default save locations based on the template that I am using? I have a bunch of templates that I use for my job as a teacher. Each document needs to be saved at a different location on the drive which can sometimes be multiple folders deep. I just...
This might be helpful.
From MSDN(http://msdn.microsoft.com/en-us/library/ys4ctaz0%28VS.85%29.aspx)
Function ShowDriveType(drvpath)
Dim fso, d, t
Set fso = CreateObject("Scripting.FileSystemObject")
Set d = fso.GetDrive(drvpath)
Select Case d.DriveType
Case 0: t =...
I haven't touched VB in years but I assume you are doing this:
Open "TESTFILE" For Input As #1
' do whatever
Close #1
Try this instead:
Open "TESTFILE" For Binary Access Read As #1
'do whatever
Close #1
I recall doing something like this about 5 years ago
Good luck
Hello:
How do I change the default location for windows explorer to a specific drive. Whenever I start explorer, I want it to go to the g:\ drive instead of
"C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu"
Thank you,
Hello:
The following function is in a class. I want to return the data to the form through this function. What is the proper way to do this please?
Public Class Database
Public cn As OleDbConnection
Public cmd As OleDbCommand
Public dr As OleDbDataReader
Public da As...
Hello:
How do I use a custom procedure in A2K please? I created a procedure and I want when a new record is added to the database that this procedure runs and updates a particular field with a particular default value. I created a public procedure in a module. I am trying to use it from the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.