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. sm2605

    how to call a sub from another sub

    thanks so much, really appreciate it.
  2. sm2605

    need help copying files from one folder to another

    ok, im sorry again, i dont want to copy *.* i just want to copy specific files that i already know the name of...how do i do that thanks so much
  3. sm2605

    how to call a sub from another sub

    Hi, i have a sub form_load() and a sub process_click() but i dont know how to connect them. meaning the variables i used in form_load() i want to be able to use in process_click(). both are public subs and here is the code from both: your help is greatly appreciated...thanks Public Sub...
  4. sm2605

    need help copying files from one folder to another

    hi, thanks for your help from before, i wanted to ask what is the syntax to copy folders along with files? *.* only copies files and doesnt replicate the source directory into the destination directory thanks for all your help
  5. sm2605

    need help copying files from one folder to another

    Thanks....i promise no more questions!! Thank you all for your help
  6. sm2605

    need help copying files from one folder to another

    THanks!!! so much what about this function: why is it being used and what is it testing for? It is creating a directory but what directory is it creating? Public Function MakeDir(strPath As String) As Boolean 'makedirectory function NOT SURE WHAT THIS DOES If Right(strPath, 1) <>...
  7. sm2605

    need help copying files from one folder to another

    Thanks!! What am i supposed to put in the FormLoad(). Is that where the beginning of my code goes...meaning everything else that ive coded. And can i call this page rather then copy it into the program from the previous page? Last question, Command1_Click() what is the purpose of that...
  8. sm2605

    need help copying files from one folder to another

    Ok Ive added comments to the code from above. Some of then comments im not sure of. Can someone check it out and let me know if the comments are correct. Option Explicit Private Declare Function MakeSureDirectoryPathExists Lib &quot;imagehlp.dll&quot; (ByVal lpPath As String) As Long...
  9. sm2605

    need help copying files from one folder to another

    thank you...as you can tell im new to VB
  10. sm2605

    need help copying files from one folder to another

    iwas trying to run the code that LPlates wrote up above but i get an error on the first line: Private Declare Function MakeSureDirectoryPathExists Lib &quot;imagehlp.dll&quot; (ByVal lpPath As String) As Long of only comments may appear after end sub
  11. sm2605

    How do i read a time period and process accordingly

    Ok sorry about the confusion, here goes: i want to create a menu with two choices: 1. select a time period 2. exit if a time period is selected i want to check to see if the user is on a server or on his/her local drive. This can be done by simply looking up to see if the drive is local...
  12. sm2605

    need help copying files from one folder to another

    Thanks for your help!! i dont want to use FSO because it might not be available for some users. I will try and run tho=rough the above code in a new project and see what happens. basically when i say If getKey(&quot;software\financial\Paths\User Path&quot;) = Null Then im just trying to...
  13. sm2605

    need help copying files from one folder to another

    is this my question on whther or not i can create a function and just call it. if so how do i use this and how do i get rid of the current code i have? thanks for your help :)
  14. sm2605

    How do i read a time period and process accordingly

    i dont want to return the text or index i am going to do other processing when the user selects one of the choices. The problem im having is in my flow cchart i have to read the choices first then create a menu of either selecting a choice or exit. if the user selects a choice then im checking...
  15. sm2605

    How do i read a time period and process accordingly

    Hi, i wrote a flow chart for a project but im kind of stuck. Here is the flow chart read selected choices 'main menu user exits or user picks a choice im having trouble with the read the choices. I have a list of 5 time periods written in a combo box. How do i read the time periods...
  16. sm2605

    need help copying files from one folder to another

    Im sorry but im kinda lost at the code above. What exactly is it doing and how am i using this? thanks again
  17. sm2605

    need help copying files from one folder to another

    thanks, but when you say use dir code how is that helping the code, because dir functions accept two arguments and returns a string with the name of a file or folder that matches the specified folder or file attribute. Ive tried it anyway incase im misunderstanding it. here is what i have so...
  18. sm2605

    need help copying files from one folder to another

    Im sorry but im not familiar with late binding. I was only told my a coworker that i was going to get an error if the user didnt have the proper add-ins when i use file sys object function. This is why im asking if there is a way to copy files using a function or class. How about something...
  19. sm2605

    need help copying files from one folder to another

    sorry to bother you again, but i have another question regardig this copying function. I just realized that if a user is going to be using this then they will need to register the appropriate dll's inorder for the file sys object to give an error. Is there a way to maybe create a function to...
  20. sm2605

    need help copying files from one folder to another

    by the way where are you located that its 3am?

Part and Inventory Search

Back
Top