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 dencom 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: feipezi
  • Content: Threads
  • Order by date
  1. feipezi

    Do we have a VBS version of listing files in a folder?

    Hi, There is a function 'filelist' on the web in Excel macro but I am looking for a similar func with VBS, which can be run in Window Explorer. Thanks in advance. Here is the Excel macro/function 'FILELIST'. Function FileList(fldr As String, Optional fltr As String = "*.*") As Variant...
  2. feipezi

    How to make a recorded Excel macro (convert a text file to a Workbook) more efficient?

    Hi, I recorded a macro that can convert a text file into an Excel workbook. But the code looks messy with quite some redundant statements. I tried to streamline it but with no success. Like the Arrays, do we need that many arrays? Besides, what if I have more than 30 fields? That being the...
  3. feipezi

    How to get the macros back as they vanish somehow in a AccessDB?

    Hello folks, I have an AccessDB with a size of abound 30 MG. There are tons of macros in it. I am responsible for running some production jobs at the beginning of a month. A few associates did the similar thing a few days ago. As I took over, I found none of the butotns, back up by some macros...
  4. feipezi

    Hoe to fix run time error 2147217900 (80040e14) syntax error in Order By clause

    Hello, I cannot figure out what's wrong with the syntax on the SQL statements. It's not a complicated process, is it? All I want is to check out if the input dataset has been updated. So I can run my process if it has. The query that I ran was in Excel ADO. But the dataset resides in MS...
  5. feipezi

    How to detect dups and/or sum by group?

    Hi, Is there any way of combining the following two Subs into one? Or it looks messay. Thanks. Sub SumByGroup(keyfield As String, datacol As Integer, destcol As Integer) 'keyfield: the field of key, datacol: Offset number, if keyfield is "a" then datacol=2 means data in field "c" 'destcol...
  6. feipezi

    How to pull data from MS Access DB and place on an Excel spreadsheet with WHERE clause?

    Hi, Not sure if the subject is more like supposed to be in the fields of Access forum but the destination is in Excel. Please forgive me if I came to the wrong site. I copied a part of the code from Youtube but I need to set up a query to output a small subset of data from an Access table (the...
  7. feipezi

    How to find a string from multiple Word files, which are listed on an Excel spreadsheet?

    Hello folks, Long time no talk. Hope all is well with you! I have about 100 Word files listed on an Excel spreadsheet. I don't want to go through the pain to search for some strings in each Word doc by opening and closing it if I find nothing. I have a Word macro to find a particular string...
  8. feipezi

    How to combine the tabs from multi workbooks in a single workbook with renaming tabs?

    Hello, I tried to do what I have to do to fulfill what the subject specified but not quite satisfied with what I got. I have about 5 workbooks for each model. I was asked to copy all the tabs in each book and place them in a single workbook. However, we have 10 to 20% of the tabs have the same...
  9. feipezi

    How to refresh embedded items on an Excel 2013 worksheet?

    Hello, I've embedded a shape (or icon) in on a spreadsheet by a macro. But the icon won't show the image of the item until the book is saved and reopened. What's the refresh statements to make it present itself right after the embedding is done? Thanks in advance.
  10. feipezi

    How to resume Project Explorer, Properties and editor arrangement and layout?

    Hello, Somehow I screwed up the layout of those windows but tried to make them come back where they were and failed. Is there any shortcut to get the thing done? I read some posts before and I'm not the only one who has the issues. I remember I figure out a way of doing it but I forgot again, an...
  11. feipezi

    How to embed files like PDF, TXT file and zipped files on an Excel spreadsheet?

    Hello, I recorded a macro to do what's on the Subject line but each time I have to select a particular file from a folder. What I want is to have a macro with a do loop that can embed multiple file in a series of designated cells, with no need for the user to pick from a folder. Here is the...
  12. feipezi

    How to fix error code 'subscript out of range' (run-time error '9')?

    Hello, Hope you all doing well and staying far far away from COVID 19. What i'm trying to do is to copy all the tabs of all the workbooks in a folder into a single workbook. But I have 2 errors : one is from the statement: Set nusheet = Workbooks(basebook).Worksheets.Add. But if I take...
  13. feipezi

    How to copy files from more than one subfolder into a single folder?

    Hello, Would you happen to have some ready-made code to do the task in the Subject line? I copied some code from Google.com but most of them are not working. Like the following: the bug comes form the statements of "objFILE.Copy objEND": object required... Dim objFSO Dim objSTR, objEND, objTYP...
  14. feipezi

    How to zip multiple files from one source folder to a destination folder in Windows 10 environment?

    Hello, I guess the subject has made myself clear. If not please let me know what info needed. Thanks in advance.
  15. feipezi

    How to fix a run-time error in ADO process?

    Hello, I need you guys to help me with some ADO messages. I have a snapshot attached. I do not understand what's wrong with the name of the table. I ran a few procedures with very similar table name without any issues until now. you can see the SQL statement in the query cannot be simpler than...
  16. feipezi

    how to make a Form Listbox linkedcell to present as text instead of number?

    Hello guys, A quick question. Haven't created Excel macros for a while. I guess I did it before but unable to find a solution. I know for ActiveX, this is not a problem. But for Form, it is number by default. One more question. The reason why I use Form to insert shapes, instead of ActiveX, is...
  17. feipezi

    How to XCOPY all the folders/subfolders to a destination folder?

    Hello, I am trying to xcopy some folders and files with specific suffix to a destination folder but I always get message like '0 files copied' or 'parameters not recognized'. What I did was goto Start window and typed 'cmd' at the bottome of the window, which brought me to a black screen like a...
  18. feipezi

    How to change system date by VBS?

    Hello, Sometimes I need to change system date on a Windows 7 system. Or I need to make the changes manually. Can someone help me out there? Do I need help from API? I doubt it. Many Thanks In Advance. Regards.
  19. feipezi

    Hello folks, Long time no talk. Ho

    Hello folks, Long time no talk. Hope you're all doing well. I have a workbook with a few tabs. I want to check first to see if the summary column is already there or not. If it is there, then exit sub or run another sub to create that column. The code is like the following: Sub FindNCO()...
  20. feipezi

    How to conditionally create a column of summary?

    Hello folks, Long time no talk. Hope you're all doing well. I have a workbook with a few tabs. I want to check first to see if the summary column is already there or not. If it is there, then exit sub or run another sub to create that column. The code is like the following: Sub FindNCO()...

Part and Inventory Search

Back
Top