Guys,
I need help with a script where I can tell it to delete files older than 2 days (date modified) in a folder called "c:\backup".
I was able to find some similar codes (see below), but this codes goes and delete folders instead files.
TIA,
Tnt
------------------------------
Option...
Guys,
I need be able to tell the field that some of the data has a comma in it.
For example, the field Title. It may have something like VP, Finance. With the current code, it thinks it is a seperate field.
Below is my code.
-------------------------------------------------
'Global...
Guys,
I am looking to connect to AD and pull some of the following information from it.
I am looking to get First Name, Last Name, Phone Number etc.
One of the criteria is to look at the "Member of" and determine if he/she is a member of the F-Accounting or F-MHR.
Then output the result...
Guys,
Lets say the Drawing.idw and Part1.ipt files are already open by the users. The .Drawing.idw will be the "active document". How do I call the Part1.ipt file so it will be the file that I want to copy the information too?
Instead of hard-coding.
Set oDoc1 =...
Robert,
It doesn't work.
The files are already opened by the user. Before the script is run, i want to have a prompt box that prompts the user for the exact location (that the file is going to be updated). With that exact location, it goes into memory for the following line (instead of hard...
Guys,
The codes work when the value matches the listed items from the material component.
Since I am reading the value from another place, the end users might have entered "steels" instead of "steel".
Any codes that I can check to see it matches, if it doesn't match then I want a message...
Guys,
Instead of hard coding the location of the file, I like to have a dialog box that allows the user to locate the file.
Any code samples or link I can use.
Set oDoc1 = oApplication.Documents.ItemByName("C:\twd\Part1.ipt")
Below is my complete code. I commented things out for testing...
Guys,
Its been years I have touch VB/VBA.
How do i carry a variable in memory. I need to put the value of Myvalue on this line below. I recall something about using the % or &, but its been too long time ago.
oPropsets2.Add "'%Myvalue%'", "Category", 2
Thanks,
Tony...
Guys,
How do I keep/write the variables on the section of the "For Each". I want to be able to store them in memory and write them to another file of the property page called (Part1.ipt). Right now, I can read the value. Not sure what to do it from there.
Btw, the field has a value and a...
Tony,
I will try each one individually. There will be two files opened by the user. The documents have full file.
I just want to make sure the file that i am updating is opened within the software.
Thanks,
Tractng
Tony,
This is what the vendor suggested.
Use oApplication.Documents.Item or oApplication.Documents.ItemByName to obtain the second document of interest. The ItemByName property accepts the
full file name of the document that is open.
I was able to use:
Set oDoc1 =...
Tony,
I need your help. I want to be able to read the current active file (field in the property page) and write that value to a non-active file (field in the property page). Both files are open by the same program (Inventor).
My current codes allow me to read the fields. I just cannot able...
Guys,
How do I call a non active document (file) and making it an active document.
Current, I am reading doc1 as being active. Once I am done, I like to call another document(doc2) and make it active.
Any codes?
Thanks in advance.
Tony
Guys,
I need your help. I want to be able to read the current active file (field in the property page) and write that value to a non-active file (field in the property page). Both files are open by the same program (Inventor).
My current codes allow me to read the fields. I just cannot...
Macropod,
Thanks man!! Something that I need. Its been a long time I wrote some VB(A). I was thinking of doing a For Loop and read the records of it. I will try it tomorrow.
TOny
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.