dcsimg

Search:

Type: Posts; User: Max Anstey

Search: Search took 0.12 seconds.

  1. Re: I'm doing something wrong (I'm sure it's very simple - < 10 lines of code)

    91237 I have this so far and now I need to learn how to paste it into a column in a spreadsheet object. Thanks for the help.
  2. Re: I'm doing something wrong (I'm sure it's very simple - < 10 lines of code)

    When doing this myself, I find the directory in DOS, DIR /b it, and paste the results into a Excel column. I basically want to automate this within a form (with it's own spreadsheet) but as i'm a...
  3. Re: I'm doing something wrong (I'm sure it's very simple - < 10 lines of code)

    <ignore this i don't know how to delete posts>
  4. Re: I'm doing something wrong (I'm sure it's very simple - < 10 lines of code)

    Private Sub Command1_Click()
    ChDir (Text2.Text)
    Clipboard.Clear
    CMDLINE = "cmd.exe /c Dir /b | clip"
    Shell CMDLINE
    Text1.Text = Clipboard.GetText

    End Sub

    Private Sub...
  5. Re: I'm doing something wrong (I'm sure it's very simple - < 10 lines of code)

    I have to electronically distribute a lot of files I scan in as PDFs, so I find the directory using CD, DIR /b it and copy and paste the names into an excel spreadsheet to write next to the filenames...
  6. Re: I'm doing something wrong (I'm sure it's very simple - < 10 lines of code)

    Private Sub Form_Load()
    Text2.Text = "C:\Documents and Settings\max.anstey\Desktop\New Folder"
    End Sub

    For now, the content is the directory, because I haven't got far enough in writing the...
  7. Re: I'm doing something wrong (I'm sure it's very simple - < 10 lines of code)

    Private Sub Command1_Click()
    ChDir (Text2.Text)
    If Text1.Text <> "dsufhuidsh" Then
    CMDLINE = "cmd.exe /c" & Text2.Text & "Dir /b >> dir.txt"
    End If
    Shell CMDLINE
    Open "dir.txt" For Input As #1...
  8. [RESOLVED] I'm doing something wrong (I'm sure it's very simple - < 10 lines of code)

    Private Sub Command1_Click()
    ChDir (Text2.Text)
    If Text1.Text <> "dsufhuidsh" Then Text2.Text & "cmd.exe /c Dir /b >> dir.txt" = CMDLINE
    Shell CMDLINE
    Open "dir.txt" For Input As #1
    ...
  9. Replies
    2
    Views
    511

    Re: Named Ranges??? (Like in Excel)

    Anyone???????????????????????????
  10. Replies
    2
    Views
    511

    Named Ranges??? (Like in Excel)

    I've looked all over the Internet (Googled lots) and can't find my answer.

    In Excel you can do "A1 : D1" which is from A1 to D1 - I'm looking for a similar, VB6 equivalent code for this (as if it...
  11. Replies
    3
    Views
    627

    Re: windows 8 problem

    I'd assume Windows 8 is backwards-compatible, but I think you're going to get a much faster answer by simply trying and seeing.

    EDIT: ^^ I stand corrected
  12. Re: Another simple renaming program (diff. purpose) (with screenshots)

    Thank you. I think I have all I need to finish this program (with a lot of Googling)
  13. Re: Another simple renaming program (diff. purpose) (with screenshots)

    Any help with previewing PDFs?
  14. Re: Another simple renaming program (diff. purpose) (with screenshots)

    I took it out of another application someone wrote a part of for me, I don't understand the code I'm simply showing you it:

    Private Sub cmdBrowse_Click()
    Dim objShell As Object
    Dim ssfWINDOWS...
  15. Another simple renaming program (diff. purpose) (with screenshots)

    Just in case you can't read my writing:

    "Concatenate"

    "Use .DLL from Acrobat Reader???"

    "Code sorted thanks to MarkT"

    "From -> To (down arrow)"
  16. Re: Run Time Error 58(I think I know the resolution just not the code - with screensh

    Thank you both, I'll check them out.

    I've been trying to Google it but just don't know what to do Google, how do I get it so it's like "If filename already exists then add (1).. (2).. etc. as a...
  17. Re: Run Time Error 58(I think I know the resolution just not the code - with screensh

    Thank you. Will I need to replace "'do your rename" with an actual script for the renaming or will this do it for me as well?

    Thanks
  18. Run Time Error 58(I think I know the resolution just not the code - with screenshots)

    90255

    My educated guess is that I simply need a string telling VB "if the file already exists, name it as filename (1) .. (2)... etc.." but I don't know if that is the resolution nor if that is...
  19. Re: Clock system tray pop up box on event (time change)

    Sorry. What I'm asking for is a Tool tip box (?) but Max's suggestion seems a simple solution.
  20. Re: Clock system tray pop up box on event (time change)

    anyone?
  21. Re: Clock system tray pop up box on event (time change)

    Another website after some Googling (http://www.xtremevbtalk.com/showthread.php?t=93500) told me that I can use a popupmenu?? I'm not sure how I go about that but I gave this a shot and it didn't...
  22. Clock system tray pop up box on event (time change)

    http://www.vbforums.com/showthread.php?685909-Simple-clock-(system-tray-popup)

    Now I want what I've asked for in the thread title. The event would be for example the time changing to "12:00"
    ...
  23. [RESOLVED] Simple clock (system tray popup)

    Private Sub Form_Load()
    'the form must be fully visible before calling Shell_NotifyIcon
    Me.Show
    Me.Refresh
    With nid
    .cbSize = Len(nid)
    .hwnd =...
  24. Re: "My.Application.Startup Event" in VB6 (run specified script on startup)

    Thanks Doogle and thanks again DataMiser. I have another query if you could check it out (once I've posted it) on a simple clock I'm designing.
  25. "My.Application.Startup Event" in VB6 (run specified script on startup)

    Pretty simple really, I want a greyed out label and to do this I can use "Label1.Enabled = False" except when double clicking the label it brings up "Private Sub Label1_Click()" so, simply put, my...
  26. Re: Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    Absolutely amazing. That's exactly what I wanted. Thank you!!!
  27. Re: Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    Okay I'll do some Googling and see if I can work out how to put it all together using what you've told me. Thanks! I'll presumably be back soon.
  28. Re: Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    I got .net and got "'Microsoft.VisualBasic.Compatibility.VB6.FileListBox' is obsolete" http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.compatibility.vb6.filelistbox.aspx and have no...
  29. Re: Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    Can you build standalone executables in VB Express? If it's that simple I'll definitely check it out.

    If I was to have it so the text boxes old and new how would that work?...
  30. Re: Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    Could you break down exactly what the different parts are doing please? I can put it in, but don't understand what things are actually doing like "For x=0 to File1.Listcount-1"

    Thank you
  31. Re: Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    Exactly that! As well as this, for example, Old: "Health and Safety Induction" New: "Health and Safety Site Induction".
  32. Re: Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    I just wanted 'Name <TEXT IN OLD TEXT BOX HERE> As <TEXT IN NEW TEXT BOX HERE>' for as many old/new boxes there are
  33. Re: Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    I'm not trying to copy over code from Excel to VB6, I simply wrote the program in Excel using a tutorial and would now like to create a new useful, practical version in VB.

    The easiest example for...
  34. Re: Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    using the filelist, could I literally copy the whole list, use it
    Name <HERE> <newname>?? I basically want the template to be Name <oldname> <newname> and for the text in text box old and new to...
  35. Re: Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    Thank you.

    Just to make your lives easier in helping me, I followed this tutorial for the basis of my spreadsheet which does the job...
  36. Re: Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    If it can be done in VB I'm more than happy to take that route (hence )

    I'm currently at work but once I'm at home from what I've learned I'm going to have a proper Google and see how far I can...
  37. Re: Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    Apologies for my lack of knowledge; I've just discovered I'd use Shell() to OPEN the cmd prompt as opposed to the function itself opening the cmd prompt
  38. Re: Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    Thank you. What functions are necessary for me to browse for a folder, and then for VB to copy all the filenames to the clipboard (to then paste into the script that'll be executed in the cmd prompt...
  39. Re: Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    Have I done something wrong in asking my question? I seem to be getting ignored (I understand it's only been up for a few hours) whereas considerably newer posts already have a reply.

    Just for...
  40. Using a simple VB Form to rename files using the CMD Prompt (with screenshots)

    I have a very VERY basic knowledge of VB6, I've been using it for years but following tutorials etc. I'm not stupid but far from knowledgeable.

    Here is (hopefully) all you'll need to know what I...
Results 1 to 40 of 40



Featured


Click Here to Expand Forum to Full Width