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 Mike Lewis 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: *

  1. HANSGIELEN

    Image.FromFile locks file

    When loading an image with Image.FromFile the picturebox control locks the file so you get an exception when you try to delete it. After long research I found the following solution, does anybody know something more elegant? If Not (myPic.Image Is Nothing) Then 'get rid of any former...
  2. HANSGIELEN

    Not close DOS prompt after shell is done

    What about the good old pause-command???
  3. HANSGIELEN

    Return message from Command Line utility

    Good old DOS: Redirect the output of the command to a file! Lets assume your command is named DOIT.EXE Kill "Output.Txt" dummy = Shell("DOIT.EXE > Output.Txt", vbMinimizedFocus)) 'Now Output.Txt contains the output of DOIT.EXE 'Maybe you have to wait here for execution...
  4. HANSGIELEN

    Is it possible to call a vba macro from visual basic?

    Hi there, as far as I understand you want to programmatically start an excel macro from your code. Maybe this is helpful: Create an excel file named e.g. "C:\Progs\MyCode.Xls" Record or write the code necessary to perform the required operations in a Public Sub in any VBA module...
  5. HANSGIELEN

    EXPORTING VB6 DATAGRID TO EXCEL SPREADSHEET

    The following source is from Access but should work under VB as well. Create a file named Template.XLS and apply all formatting not depending on data pasted. In code create a copy of your template, fill it, print it save it ... Global Const xlUp = -4162 Global Const xlNone = -4142 Global...
  6. HANSGIELEN

    excel commands

    First of all you should use Excel to record macros and analyze the resulting code. The following source is from Access but should work under VB as well. Depending on the structure of your app, you may as well read the data directly from Excel or create the excel files from your database app...

Part and Inventory Search

Back
Top