Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: nochoice
  • Content: Threads
  • Order by date
  1. nochoice

    4 arrays 5 options = 1024 IF statements......no cool.

    I have, not necessarily a Jscript question, but a programing question. In an html file I call a Jscript function and pass it 4 variables: <script language=&quot;JavaScript1.2&quot;>myfunction(var1,var2,var3,var4);</script> the Jscript function is in an external .js file. Each variable can...
  2. nochoice

    Parsing a Variable

    Hey Everybody, I have my users enter some information into a form and submit it. Then I do the standard checking of the form to make sure all entries were filled in correctly, if they were, the information is posted. What I'm worried about is swearing and other such bad language. I would...
  3. nochoice

    Altering a Variable using ~ s/

    Hey everyone, I have a file that is java script. At the beginning of the file I define an array of pictures like this: images[0]=&quot;....stuf...&quot;; images[1]=&quot;....stuf...&quot;; images[2]=&quot;....stuf...&quot;; ... images[15]=&quot;....stuf...&quot;; Anybody can add their...
  4. nochoice

    How to see if a file exists

    Hey guys here's my issue: I am interested in determining if a file exists. Here's the scenario: 1) user wants to add their engineering website to my linklist. 2) User fills in a simple form - name, eng porgram, URL of websited, etc.... and hits submit. 3) I want to verify that the URL they...
  5. nochoice

    Disable the Close (X) button in a Word Document

    I would like to take thread707-567962 a little further. Is it possible to disable the close button on a word document? The reason I would like this is, there is a Macro I want to run before I exit my Word documents and by force of habit, I frequently hit the (x) and click save. I want to...
  6. nochoice

    Str() Why does it add a space?

    Hello, I have a simple For loop in a Word Macro For i = 1 To count.Value rnga = &quot;A&quot; + Str(i) rngb = &quot;B&quot; + Str(i) oWbk.Sheets(1).Range(rnga).formulaR1C1 = myarray(0, i) oWbk.Sheets(1).Range(rngb).formulaR1C1 = myarray(1, i) Next i My only problem is Str(i) returns...
  7. nochoice

    Saving contents of a combobox

    Hello, I have populated a combobox using: ml.OLEFormat.Object.Column() = myarray My problem is, once I have closed the document, after saving of course, I lose the contents of the combobox. How do I save what has been inputted into the combobox? Thanks in advance, NoChoice
  8. nochoice

    Running Javascript from document.writeln

    Hi Everybody, I'm having a bit of trouble explaining what I'm trying to do, so please bear with me. I have a website with the following code: <html> <head> <title>Frosh Galleries</title> </head> <body> <script language=&quot;JavaScript1.2&quot...
  9. nochoice

    Reading from a Muli Column ComboBox - Word

    Hey Everybody, OK here's my problem - this is starting to sound vaguely familiar: I have a multi column combobox that has been populated using the following code: ml.OLEFormat.Object.Column() = myarray This is what I can't do: I want to search through the combobox and when it finds an entry...
  10. nochoice

    using additem for a multi column ComboBox

    Hi, It's me again. What I would like to do is use AddItem to add an item to a Multi Column ComboBox. What I currently use is an array. The problem with the array is I have to specify a length: Dim myarray(2, 10000) I made it 10,000 to ensure I had enough room. To fill the combobox, I use...
  11. nochoice

    Selecting the next OLEformat.object in Word

    Good Afternoon - depends on when you read this, I have a document with 100 checkboxes and beside each checkbox is a combobox, If I currently have selected a checkbox, how can I select the adjacent combobox?.....It's a little more complicated than wdExtend I think; here is my code: 'searches...
  12. nochoice

    Variable ComboBox name - Word

    Hello, I have a variable: name_combo = &quot;ComboBox1&quot; I want to do this: name_combo.AddItem CheckBox1.Caption I keep getting this: Run-time Error '424': Object required I realize that VB considers the variable 'name_combo' as an object that doesn't exist. What can I do to fix my...
  13. nochoice

    Finding the Value of every ComboBox in a Word document

    I want to take my thread: thread707-586046 A little further. I've been experimenting with this code, what I want do do now is the same thing except with comboboxes where my combobox's are named ComboBox1, ComboBox2 etc... First I tried to use the code supplied and find what type of...
  14. nochoice

    How to add buttons and comboboxes that function using a WORD Macro

    Hi There, Here is what I'm trying to do: I have a combobox and 3 buttons associted with the combobox 1)add - Adds an entry 2)remove - Remove an entry 3)remove all - Removes all entries Let's call these 4 objects a Group I have 2 groups. I can easily remove a group. My problem is adding a...
  15. nochoice

    How do you make a WORD document always on top?

    I would like to take thread707-551401 a little further. How can you make a WORD Document always on top? Thanks
  16. nochoice

    Here's My Code: #==========

    Here's My Code: #========================== open(OUTF,&quot;+>>submit.js&quot;); flock(OUTF,2); seek(OUTF,0,2); close (OUTF); #========================== Note: As far as I'm aware, +>> allows me to open the file with read/write/append/create privileges. Here is the structure of submit.js...
  17. nochoice

    passing a variable form one document o another document

    Here's my code: '===================================== Private Sub add_doc_Click() Documents.Open (net_director + &quot;Add Document.doc&quot;) ActiveDocument.Variables.Add Name:=&quot;net_dir&quot;, Value:=net_director MsgBox (ActiveDocument.Name) End Sub...
  18. nochoice

    Finding the name o an open Word document

    Hey everybody, I open a document (doc1.doc) using the file open command (like clicking with my mouse no code), I then click a button in doc1.doc, and it opens a new document (doc2.doc). How do I find the name of doc1.doc? The reason is, I need to pass the value of a checkbox from doc1.doc to...
  19. nochoice

    naming a checkbox in Word

    I have added a checkbox, I want to change its name and caption, the problem is when it is added, I don't know its name, how can I go about changing a checkbox's name when I first add it? Here is my code to add the checkbox: Selection.InlineShapes.AddOLEControl...
  20. nochoice

    Several Questions Regarding WORD

    Here are my questions: 1) How do I turn the entire menu bar off -file, view, help, etc....? -using VBA of course 2) How do I create a directory? - Again using VBA 3) How do I find screen resolution (example, whether I'm running on 800x600, 640x480, etc...)? Is it possible? 4) I have added a...

Part and Inventory Search

Back
Top