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 strongm 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: Shaun29
  • Content: Threads
  • Order by date
  1. Shaun29

    REGULAR EXPRESSION?

    I basically need to to set up a regular expression with this code so when i open my txtfile.text it finds all the differrent acronyms and when it does extract the whole line that the acronym is in here is a sample of my text file and a sample of my code any help would be highly appreciated "C FB...
  2. Shaun29

    can anyony help with instr and reg

    I basically need to to set up a regular expression with this code so when i open my txtfile.text it finds all the differrent acronyms and when it does extract the whole line that the acronym is in here is a sample of my text file and a sample of my code any help would be highly appreciated "C FB...
  3. Shaun29

    can any one tell me how I can use this code to select all varibles?

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'SAW EXTRACT BUTTON ofd3.ShowDialog() If Not Me.txtFile.Text = "close" Then Dim instance As COMException ' Set this to the file to...
  4. Shaun29

    how Selecting more lines is it const config or ?

    This works!!! to where my strToFind will find my "SHT" but only one instance.. I have a text document with many instances of "SHT".in the line of text and I want them all this code gives me just one when I click to transfer into my selected file.. also how can I add more acronyms like "SHT"...
  5. Shaun29

    need write stament

    the system IO will not lte me write my array? ofd3.ShowDialog() If Not Me.txtFile.Text = "close" Then 'Read the existing file Dim FileText As String = "" FileText = System.IO.File.ReadAllText(Me.txtFile.Text) 'saw...
  6. Shaun29

    Mid, command ?

    does any one have an example of how i can use the mid ,left, right len command to write these dim characters and all text to left and right of the row from a text file and write them to a specific file chosen from my open file dilog? basicaly i know i need to loop throw the text in my write...
  7. Shaun29

    How do can this IO work?

    basically I am trying to use the selected file in open dialog to write to instead of a pre-ordained "logfile" i want to select the file to write to? Me.txtFile.Text = "" ofd.ShowDialog() Me.txtFile.Text = ofd.FileName If Not Me.txtFile.Text = "" Then...
  8. Shaun29

    how to select text strings and export them to a existing excel xls

    I need to fix this code== so when I open my filedialog and select a text file, then it shows up in my text box, I then chase the file path open the text file, read the text find certin varibles or letter group in the rows of text that are like tags, the extract the whole row into an excell...
  9. Shaun29

    How do I send text to excell?

    I have an text file that i use as a template QTY ITM INVO MAT 1 a 23 ir 1 a 23 ir 1 a 23 ir 1 a 23 ir 1 a 23 ir 1 a 23 ir 1 a 23 ir how do i get each row to an excel sheet and keep adding to the end of last row...
  10. Shaun29

    how to sort text in a text file

    Ok if I have a selected text file which contents rows of information like a bill of material I want to declaire and sort to an excell work book were all S,M T rows will go to the work book and be saved in sheet 1 to end of file. and A,O,L will be saved to sheet 2 to end of file I have a...
  11. Shaun29

    Simple code need to access file in text box

    I click a button open dialog displays, I select my file it displays in text box now I want to use tha selected file so i can stream write all contents to a text file when I click btn 2 here is the code: Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As...
  12. Shaun29

    how to acces the data from open dialog? and exicute it to extract text

    I click a button open dialog displays, I select my file it displays in text box now I want to use tha selected file so i can stream write all contents to a text file when I click btn 2 here is the code: Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As...
  13. Shaun29

    how to stream write a selcted file chosen in open dialog

    I click a button open dialog displays, I select my file it displays in text box now I want to use tha selected file so i can stream write all contents to a text file when I click btn 2 here is the code: Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As...
  14. Shaun29

    stream reading and writing ?

    ok need help to figure this one out Private Sub AcadDocument_Activate() 'this is my object an open active cad drawing. End Sub so how would I stream write or read to write so that my object will send all of its information to a c:\test.text file and what refrances should I use?( i am using...
  15. Shaun29

    deos ny one know how to extract from CAD

    I have been trying all week and my job depends on this! my first time using cad vb6 I am trying to extract attributes from blocks and have them automatically be sent to a xls when drawing is saved.
  16. Shaun29

    ok this sucks need help with simple program

    Sub BOM() Write #1, "txt.outputbom.txt" eof(1) Close #1 End sub i open CAD I run VBAIDE i put this in and the output file does not get wrote to what am i doing wrong i have tried to open the text file Sub BOM() Open "BOM_TEXT.dwg" For Append As #1 Write #1, "txt.outputbom.txt" eof(1) Close...
  17. Shaun29

    run time error 70 issue

    any one know how to get past this? using vba for AutoCAD
  18. Shaun29

    vba code for CAD simple code gone wrong need advice!

    I am Trying to write a simple code to extract attribute info from a block. I want to use this block for all my CAD drawings, despite that the may be different and compile all info on to one text file. I Am running CAD 2007 so I created a BOM with attributes I created a template using EATTEXT...

Part and Inventory Search

Back
Top