Search:

Type: Posts; User: sbarber007

Page 1 of 7 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    4
    Views
    1,106

    Re: Zipping Files and Folders

    @wqweto

    Hi

    Can you show me please how to do it with ZipArchive single class library

    Thanks
    Steve
  2. Replies
    4
    Views
    1,106

    Zipping Files and Folders

    Hi All

    Could someone please help me out by modifying the code below, I am trying just add a sub folder and files without the full path being in the zip file, please see attach Correct.zip and...
  3. Replies
    0
    Views
    1,806

    Zipping Files

    Sorry posted in Wrong section
  4. Replies
    9
    Views
    2,824

    Re: Excel to pdf

    Hi All

    I am trying convert the excel file to PDF via code, but the PDF file is not saving the same has if I choose Adobe PDF in excel if you look at the attached images you see the page size is...
  5. Replies
    9
    Views
    2,824

    Re: Excel to pdf

    hi

    I have copied the contents of the recorded macro from Excel to my vb6 code when using my code the converted PDF file the page size is bigger than if I do it manually by using Adobe PDF printer...
  6. Replies
    9
    Views
    2,824

    Re: Excel to pdf

    @Magic Ink

    Interesting where do I start with that

    Steve
  7. Replies
    9
    Views
    2,824

    Re: Excel to pdf

    @LeandroA
    Thank you for your help that worked, but for some reason when converted using the code above the excel page goes cross two pages in pdf file, if I do it manually in excel it saves in the...
  8. Replies
    9
    Views
    2,824

    Excel to pdf

    Hi All

    Could someone please help me to convert the code below to do excel instead of word please.
    Original Code

    Call ConvertToPDF("C:\Users\stephenbarber\Documents\test.docx",...
  9. Re: Automatic BMP TO JPG convertor without user input

    @xxdoc123

    I still get a Type mismatch on the code below


    Private Sub Command1_Click()
    SaveJPG "C:\Users\Steve\Pictures\new cam.bmp", "C:\Users\Steve\Pictures\MyJpegPicture.jpg", 100 ' range...
  10. Re: Automatic BMP TO JPG convertor without user input

    @xxdoc123

    Sorry I having trouble where to insert those 3 lines I think there go in the modules file and if I have to delete any other lines. Thank you
  11. Re: Automatic BMP TO JPG convertor without user input

    HI Steve

    Funny that i was just trying that one but getting error with the line in red says runtime error 2145320854 "name not found" but works if i disable that line, i presume it defaults the...
  12. Automatic BMP TO JPG convertor without user input

    Hi

    I am trying to convert a series of bmp files to jpg then delete the bmp files i found this code on this forum, how can i get rid of picture1.picture and replace it using a file path instead for...
  13. Replies
    13
    Views
    1,163

    Re: Runtime error 462 when creating Excel file

    @Arnoutdv

    Thanks All Good Now

    @ChrisE
    I will give that ago thanks

    regard

    steve
  14. Replies
    13
    Views
    1,163

    Re: Runtime error 462 when creating Excel file

    @Arnoutdv

    Hi
    Thanks for your reply

    I have tried your post #10 but i get Compile Error: User-defined type not defined on the line in red below.



    Private Sub Command3_Click()
  15. Replies
    13
    Views
    1,163

    Re: Runtime error 462 when creating Excel file

    HI all

    thanks for your help that great all working, But i got a simlar problem with another part of the code below which also fails the second time i tried putting set nothing statements in but i...
  16. Replies
    13
    Views
    1,163

    Re: Runtime error 462 when creating Excel file

    Hi ChrisE

    It still seems to come up with same error after second time, i have put below more of the code becuase i am doing one file after another 3 times.


    Private Sub BoarderButton_Click()
    ...
  17. Replies
    13
    Views
    1,163

    Re: Runtime error 462 when creating Excel file

    Mistake
  18. Replies
    13
    Views
    1,163

    Runtime error 462 when creating Excel file

    Hi All

    I am trying to create a excel file in vb6 which does work on a click of the command button but if you click the command button second time i get runtime error 462 "the remote server machine...
  19. Replies
    2
    Views
    510

    Re: Creatiing Excel file in VB6

    @Westconn1

    Thank you that easy
  20. Replies
    15
    Views
    2,945

    Re: Deleting files in sub folders

    Hi All
    Thanks for your help.
  21. Replies
    2
    Views
    510

    [RESOLVED] Creatiing Excel file in VB6

    Hi All
    Using code below to create a excel file but just wondering why I get a error message saying "Run Time Error '1004' Apllication-defined or object-defined error" when I go up to AJ column and...
  22. Replies
    15
    Views
    2,945

    Re: Deleting files in sub folders

    @Arnoutdv

    First thing I thought of but it wont delete the files in those sub folders
  23. Replies
    15
    Views
    2,945

    Deleting files in sub folders

    Hi All

    I am trying to delete all files in sub folders with the code below, but not delete the sub folders which this code below does.

    Regards

    Steve


    Dim OFS, Sfolder, Subfolder, File,...
  24. Replies
    6
    Views
    820

    Re: Active Drive Letter Searching

    @dilettante

    HI
    I thanks for the code just trying to use it not sure what to do with the code, I am trying to use DeviceId with Label array is this right label2(0) = DeviceID(0) but get error of...
  25. Replies
    6
    Views
    820

    Re: Active Drive Letter Searching

    @Arnoutdv

    i am using
    Label1(0) = sDrives(0)
    Label1(1) = sDrives(1)
    Label1(2) = sDrives(2)
    Label1(3) = sDrives(3)
    Label1(4) = sDrives(4)
    but if a drive letter disconnects then they...
  26. Replies
    6
    Views
    820

    Re: Active Drive Letter Searching

    @Arnoutdv

    Yes thats correct
  27. Replies
    6
    Views
    820

    Active Drive Letter Searching

    Hi All

    maybe Using the code below i want output all drive letters i.e "c:\" = Label 1, "d:\" = Label 2, "e:\" = Label 3, to drive P = label 14, at the moment it's outputting to a List1 under...
  28. Re: find and replace in Microsoft word

    @ChrisE

    Thank you for your help, works great

    Just a thought is there away in the code to make it save has a PDF file?
    Regards

    Steve
  29. Re: find and replace in Microsoft word

    @ChrisE

    the textbox's will be pre filled with text I want it to change the word document automated I will properly move the code to a timer so I can tell it when to run so there be no user doing...
  30. Re: find and replace in Microsoft word

    @ChrisE

    Thank you for that code, how can I change it so it finds and replaces two separate lines in one doc file then save close all in the background thanks

    Regards
    Steve
  31. Re: find and replace in Microsoft word

    @westcoon1

    Problem is this code don't seem to work if word is already open

    regards
    steve
  32. [RESOLVED] find and replace in Microsoft word

    HI all

    please could someone help me with this bit of code below, WHICH I am find and replace text in word which works fine, but what I trying to do is search for two different find and replace.
    ...
  33. Replies
    9
    Views
    2,225

    Re: Alarms for different times of the days

    Hi westconn1

    I am getting a compile error: with first bit if code on line if daAlarm5 < now then LastWeekDayOfMonth(Date + 7, vbSaturday) + TimeValue("10:06:00") says the + should be a = I change...
  34. Replies
    13
    Views
    1,245

    Re: Deleting Subfolder + Files

    HI all

    Sorry not replied sooner been away I have tried all the codes above they all work apart from they freeze up the VB program while its deleting the folders and theirs a lot of folders to...
  35. Replies
    9
    Views
    2,225

    Re: Alarms for different times of the days

    HI ChrisE

    they are interesting codes you posted, but its the every last Saturday I am having a problem with not trigging correctly on the last Saturday is always 00:00am not set time.

    Regards
    ...
  36. Replies
    9
    Views
    2,225

    Re: Alarms for different times of the days

    Hi all

    Sorry main code meant to say 10:06 has well does now in post 1

    regards

    steve
  37. Replies
    9
    Views
    2,225

    Alarms for different times of the days

    HI All

    Could someone please look at code below not sure why this is happening, DaAlarm 1 to 4 work fine they trigger at the right times of the week, but DaAlarm5 which should only trigger every...
  38. Replies
    13
    Views
    1,245

    Re: Deleting Subfolder + Files

    @baka

    Question on your Post#10 when you say root you mean root of the main folder not the root of the drive, where would I put the main folder name so it knows where to delete the subfolders or...
  39. Replies
    13
    Views
    1,245

    Re: Deleting Subfolder + Files

    @optionBAse1

    Hi I change those that you said and I get error with "DeleteDirectory txtDir.Text" Compile Error Argument not optional


    ' Delete this directory and all the files it contains....
  40. Replies
    13
    Views
    1,245

    Re: Deleting Subfolder + Files

    @Baka
    I tried moving those two lines, SetAttr dir_name, vbNormal and RmDir dir_name but did not delete the sub folders only the files within them.

    regards

    Steve
Results 1 to 40 of 273
Page 1 of 7 1 2 3 4



Click Here to Expand Forum to Full Width