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

  1. Johnomill

    Removing DLLs from the reference lists

    click: View -> Objectbrowser -> rightclick <all libraries> -> references -> uncheck unwanted reference best regards, John
  2. Johnomill

    String Array Storage Issue?

    Hi, I tried to reproduce your situation and found nothing strange. I made a file (c:\map1.csv) with: 1,2,3,4,,6,7,8,9,10,11,12 and used this code to test it: Option Base 1 'array starting with 1 in stead of 0 Sub Test() Dim Values() f = FreeFile Open &quot;C:\map1.csv&quot; For...
  3. Johnomill

    how to save a file when using shortcuts to browse to the folder?

    Yes! :-) this one did the job... Private Function ExeFromLnk(ByVal LnkFileName As String) As String Dim strTarget As String Dim strShortFileName As String Dim lnkShortcut As Object Dim wshShell As Object strShortFileName = String(255, &quot; &quot;) & Chr(0) Call...
  4. Johnomill

    how to save a file when using shortcuts to browse to the folder?

    I have a program which allows the user to save data to a location. My save-as-dialog shows 'real' folders but also shortcuts (.lnk). I use the file scripting object to check if the selected folder exists. When i select a shortcut (.lnk), fso.folderExists returns False. Is there a way to save a...
  5. Johnomill

    VBA: adding a search path

    I want to email from Excel with Lotus Notes. When Notes is not running I get the following error: the notes.ini file cannot be found in the search path: notes.ini Is there a sollution to this error? When notes is allready running, it works fine. Best regards, John
  6. Johnomill

    Excel: problem showing Formulabar

    I have a workbook and i'm hiding al commandbars at startup. When i close the workbook all the commandbars are set to the normal value. This works except for my formulabar. this is my code: Dim Bar As Object For Each Bar In Application.CommandBars Bar.Enabled = True Next Bar...
  7. Johnomill

    W2K - finding associated filetype for current user

    i made some small addition to the code. I create a dummyfile with the extention i need. f = FreeFile Open &quot;C:\a.<extention you want>&quot; For Output as #f Print #f, &quot;&quot; Close #f in code in previous message: Const sFile = &quot;C:\a.<extention you want>&quot; After finding...
  8. Johnomill

    W2K - finding associated filetype for current user

    thanks! it works :-) Regards, John
  9. Johnomill

    W2K - finding associated filetype for current user

    Hi! I want to search in the registry in W2K for a program that is associated with &quot;.out&quot;. I can do it in W98 but in W2K it is located under the (current) user: HKEY_USERS\<encrypted uservalue>\software\...\FileExts I know how to get my computername and username, but how do i get the...
  10. Johnomill

    using formula in Header/Footer

    Hi Justin, I tried this one and it returns &quot;False&quot; as result in my footer. I declared UnitName as a stringvariable. John
  11. Johnomill

    using formula in Header/Footer

    Hi, I would like to modify the footer of my page before printing it with the name of my company-unitname. But the code interprets everything as string. Is there another sollution to this problem? Unitname=Worksheets(n).Cells(r,k) With ActiveSheet.PageSetup .LeftFooter =...
  12. Johnomill

    TextWidth (or equivalent) in VBA

    Hi Brans, I give you my thoughts about this. You can determine the number of characters, and also you can select the object. It is possible to rescale the width without changing the height. nrChar = Len(myText) ActiveSheet.Shapes(&quot;WordArt n&quot;).Select...
  13. Johnomill

    VBA Excel hangs up when closing with macro

    Brans, I tried this also and this doesn't work either. I used this methods in other workbooks and I can't figure out why it fails this time... Best regards, Jan
  14. Johnomill

    TextWidth (or equivalent) in VBA

    Hi, If your text is stored in a stringvariable like myLength, you can determine the number of characters with: Len(myLenght) Is this what you are looking for? Best regards, Jan
  15. Johnomill

    VBA Excel hangs up when closing with macro

    I have created a button so I can save and quit my active workbook. When I do this, Excel hangs up. In Explorer I can see that a new file is created with a strange name. When I run the macro step by step, this problem doesn't occur. I tried different things s.a. closing with application.quit...
  16. Johnomill

    VBA Excel - import into cell changes cellformat

    Thanks Skip, it works.. Merry christmas! Jan
  17. Johnomill

    VBA Excel - import into cell changes cellformat

    I'm reading data from a comma-separated-file into a worksheet. The worksheet is protected. The cells have a format with left allignment of the Euro-sign and right allignment of the value. After import the Left allignment of the Euro-sign is changed to right. How can I prevent this from...
  18. Johnomill

    How to handle more then 1 file with GetOpenFilename

    Thanks! It's just like Xi, It works deliciously
  19. Johnomill

    How to handle more then 1 file with GetOpenFilename

    How can I access each File with Application.GetOpenFilename in Excel? I know the option Multiselect must by set to True. My old VBA code was: objA = Application.GetOpenFilename A contains the path and filename I call another macro and pass through the value of A Now I want to do the same for a...

Part and Inventory Search

Back
Top