Search results

  1. M

    How do I open a Treeview node to a specific folder/subfolder?

    Ill give it a blast Thnx again markK for your respons.
  2. M

    How do I open a Treeview node to a specific folder/subfolder?

    How do I expand a Treeview node to a specific folder/subfolder? Hi everyone, I have a tree-view object that is filled with a specific folder list, when a command button is pressed I would like too expand to a specific node based on a variable/foldername. Does anyone know how to achieve this...
  3. M

    how do I use Treeview Click event to show pictures in folders

    Hi MarkK, I have managed to solve the Select Case problem edited code as follows... Private Sub CreateNodes(Node1 As MSComctlLib.Node) Dim fdParent As Scripting.folder Dim fd As Scripting.folder Dim fFile As Scripting.File Dim Node2 As MSComctlLib.Node Dim k As String Dim...
  4. M

    how do I use Treeview Click event to show pictures in folders

    Hi again MarkK, Made a work around for now with on error 52. Private Sub tvw_NodeClick(ByVal Node1 As MSComctlLib.Node) Dim fso As New Scripting.FileSystemObject Dim tClient As String Dim tParent As Scripting.folder Dim tFolder As Scripting.folder Dim...
  5. M

    how do I use Treeview Click event to show pictures in folders

    Hi MarkK I have done some debugging, If I place Before the Select Case Node1.Tag msgbox Node1.key It passes the value on any folder/File that is clicked but after it reaches the first case it just stops. Do I have to define the Case in Select Case in anyway?
  6. M

    how do I use Treeview Click event to show pictures in folders

    Hi Markk, Thnx :-) I m afraid I do not have a choice though, I had to change my career due to a back injury and programming was the only thing i Could do in my situation. But I don't believe in quiting, it's not in my nature. I previously had the form working perfectly using...
  7. M

    how do I use Treeview Click event to show pictures in folders

    Hi again Markk Ok I think i am seeing a little bit what you are pointing too :-) I changed the Node1.Tag = "fd" to Node1.Tag = Node2 and placed a msgbox after it, now instead of "fd" in the msgbox I get the subfolder names as a message. not sure if this is correct but I understand that it...
  8. M

    how do I use Treeview Click event to show pictures in folders

    Hi Markk, This what I have so far, but when i Click on the file or folder it does not do anything. Private Sub CreateNodes(Node1 As MSComctlLib.Node) Dim fdParent As Scripting.folder Dim fd As Scripting.folder Dim fFile As Scripting.File Dim Node2 As MSComctlLib.Node Dim k As...
  9. M

    how do I use Treeview Click event to show pictures in folders

    Hi Mark Great thank you for your help, I will give it a go right away :-) Thnx again
  10. M

    how do I use Treeview Click event to show pictures in folders

    Hi Markk Sorry for my layman questions :) What I mean is... At the moment if I click on one of the folder's/subfolder in my treeview, I get the pictures in that folder's/subfolder to load into a form via an Array. But when i come to click on one of the individual nodes in the treeview it...
  11. M

    how do I use Treeview Click event to show pictures in folders

    Hi Mark, Thank you for your reply. Yea i noticed there was another function and I have all ready been busy with the code, so far this is what i have got. Private Sub tvw_NodeClick(ByVal n1 As MSComctlLib.Node) Dim fso As New Scripting.FileSystemObject Dim tClient As String...
  12. M

    how do I use Treeview Click event to show pictures in folders

    Hi eveyone, I have been looking into populating a tree-view with folders and files, and have found some great examples for doing this, How ever...I cannot seem to work out how to show files/pictures in a form based on the click event of the tree-view. I have managed to do an onclick event for...
  13. M

    Open a file in msofiledialog and show as selected?

    Hi guys, Thank you for your replies, both of which were good but I had tried those. I have a solution which based on a variable shows the file as selected, here is the code in case anyone else has a similar issue. Public Function ImageDblClickFunction(Ctrl As Control) Dim Strg As String...
  14. M

    Open a file in msofiledialog and show as selected?

    Hi again, I have another issue that I cannot seem to find the answer to, maybe it's because I do not know how to phrase it correctly :banghead:. I will try and explain it here.. What I want to do is... open a file dialog from VBA "This of cause is no problem" the file dialog is opened from a...
  15. M

    How too copy and resize muliple pictures in VBA?

    Yea sure nps, Firstly I didn't manage in the time frame i had... to resolve the issue with vba and imageMagic. What I did is to use VBA to create a a bat file with the correct procedure to call the functions in ImageMagic, then call the *.bat file to Resize the images in the folder. The...
  16. M

    How too copy and resize muliple pictures in VBA?

    Solved thank you all anyway.
  17. M

    How too copy and resize muliple pictures in VBA?

    Hi Galaxiom, Can you give me an example to work on m8? Still a bit of a newbie with code, If i can see it then i can work with it, but as far as off the top of my head, a bit layman :) Btw, I have tried various ways of running the vba, "shall we say different approaches" they all come up with...
  18. M

    How too copy and resize muliple pictures in VBA?

    No luck with imagemagick at the moment, Keep on getting error 429 ActiveX component cannot create object. Anyone got any ideas or does someone have experience using imagemagick? Thnx
  19. M

    How to check if field value exists using openrecordset?

    Hi again namliam I always get argument not optional when I try this, is the a problem with where I place the code, or am I forgetting to declare something. Tried the code as follows... For Each objFile In objFolder.Files If DCount() > 0 Then ' filename...
Top Bottom