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 SkipVought 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: VBAva
  • Order by date
  1. VBAva

    List files in directory

    Hello all i was wondering if there is a way to list all the files in a folder into an excel spread sheet using VBA? what i would like to do is get all the filenames into a spreadsheet (one column) before having to do some editing on the files i have not really worked with external files...
  2. VBAva

    Accelerator Keys

    oops, i always post questons and figure out the answer soon after! it is very easy to get the accelerator keys in for a menu item eg (this is just and excerpt so it wont work on its own) Set ctlPopUpFile = EditBar.Controls.Add(msoControlPopup) With ctlPopUpFile .Caption =...
  3. VBAva

    Accelerator Keys

    hello i know this is probably a simple question but i cant seen to find the answer :-( i have user forms and a custom menu bar and i would like to have accelerator keys or shortcut keys for the buttons, but i cant figure out how to do it. i cant find it in the excel help either. thanks for...
  4. VBAva

    Urgent! Compatibility between English and German VBA

    Interesting... i seem to have fixed the problem but i have no idea why it works now... When the file is exported as .bas instead of .txt it works fine. it used to work in the german version with .txt but not anymore. .txt or .bas works in the english one does anyone know why?? this has me...
  5. VBAva

    Exporting Excel Modules to Word

    Thanks, that works great, have a star :-)
  6. VBAva

    Exporting Excel Modules to Word

    Hi Cambo thanks for the code but i cant seem to get it to work :-( i have the Microsoft Visual Basic for Applications Extensibility 5.3 reference added but i get 'User-defined type not defined' error i am not too sure how to get it working, sorry
  7. VBAva

    Urgent! Compatibility between English and German VBA

    hello. i have come pretty much to the end of my project but encountered a problem when running it on a different machine. My computer is set up in English with English Excel, but my co-workers have German versions of windows and Excel. The little application ( i konw its technically a macro)...
  8. VBAva

    Exporting Excel Modules to Word

    Hello I was just wondering if anyone has a handy bit of code that would export the code from a VB project in Excel into Word to make it easier to print?? between modules and forms there are about 30 different parts to the code so if i exported then imported them all manually it could take some...
  9. VBAva

    Referencing Worksheets More Effectively!

    Kein Problem! As i need to refer to sheets in another workbook ill have to keep using the Namp property of the sheets instead of the code name. would there be a way to stop the user from changing the sheetname? hmmm, that might be just as good, then i wont have to worry about getting errors...
  10. VBAva

    Referencing Worksheets More Effectively!

    hello Mike i have been away from the office for a few days so was not able to explain the problem i was having properly. ill give it another go and hope that there is a way around it. As i said before the code works great for changing the name of the activesheet, but then i run into problems...
  11. VBAva

    Static Variables

    hey John You cannot have a public static variable, statics are a special type of Local variable. unfortunatly i dont know a way around this problem, sorry :-( Ava
  12. VBAva

    File already open

    Just incase anyone was looking for the answer to this, i though i would post the code that i use ..... Call basTest.CheckOpen(FileToOpen) ..... Sub CheckOpen(ByVal FileName As String) Dim wksht As Workbook FileIsOpen = False For Each wksht In Application.Workbooks If...
  13. VBAva

    Msgbox (disable X button)

    Hhmmmmm interesting.... In a message box, if you have vbYesNo or vbAbortRetryIgnore the X button is automatically disabled (never noticed before) but for all the other button combinations ( vbOKCancel, vbOKOnly, vbRetryCancel, vbYesNoCancel, vbSystemModal) it is enabled! So what if you want...
  14. VBAva

    Msgbox (disable X button)

    morning all :-) i think this much be pretty easy but mornings and thinking dont really go together. i have a message box with yes and no on it, and the user HAS to pick yes or no, how can i desable the little X in the top corner to force then to pick something?? i know with user forms you can...
  15. VBAva

    Fourier Calculation (Excel)

    Mystery solved :-) The Fourier calculation function is part of the 'Analysis ToolPak' Add-In. It can be called using Application.Run "ATPVBAEN.XLA!Fourier", ..... in VBA code, BUT the 'Analysis Toolpak - VBA' Add-In must also be, well, added in. I hope this helps some one other than...
  16. VBAva

    File already open

    Thanks Mike You must have great fun all day helping clueless "programmers" like me, it is much appreciated [thumbsup] :-)
  17. VBAva

    Fourier Calculation (Excel)

    hey Mike When i use the full path for the add in i get The macro C:\Program Files\Microsoft Office\Office\Library\Analysis\ATPVBAEN.XLA!Fourier cannot be found. Ben I tried to add it in as a Reference. now there is no error but i just does nothing. :-/ very strange. This gives me no error but...
  18. VBAva

    File already open

    Morning :) to prevent errors in my program i need to use my own procedure to check if a file selected to open is already open (the normal excel one causes problems). i have the code below, but i will not know the name of the file. the file name comes from GetOpenFileName so it is the complete...
  19. VBAva

    Referencing Worksheets More Effectively!

    Hey Mike, that is very handy bit of code! i tried it out and it is great to change the code name of a sheet, but i was having problems when i tried to reference a sheet in a different workbook ( seperate workbook to the code). i dont know what the problem was (probably just that it is a monday)...
  20. VBAva

    Fourier Calculation (Excel)

    when recorded in a macro, the command to run a fourier calculation is Application.Run "ATPVBAEN.XLA!Fourier", ...... but when this is played back it gives the error Run-Time Error '1004': 'ATPVBAEN.XLA' could not be found. Check the spelling of the file name, and verify that the file...

Part and Inventory Search

Back
Top