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

    Excel VBA: Transpose QueryTable

    Unfortunately, I am not able to change the format of the data files. They come from a different program, and more people rely on them, so I can not change the output format. Instead, I have build a little loop around the QueryTable statement, which basically makes a QueryTable for each cell in...
  2. Hermanator

    Excel VBA: Transpose QueryTable

    Hello, I'm building an Excel sheet to analyze data contained in a large number (> 200) of text files, each containing 5 values. For instance, I have files: file0001.txt, file0002.txt etc, each containing VALUE1 VALUE2 VALUE3 VALUE4 VALUE5 I have build a VBA macro which uses the Excel function...
  3. Hermanator

    Influence of order of parameters in procedure

    Of course, that's it. I failed to realize the significance of "VAR". It turns out that both y & z get changed inside the procedure, but that this change shouldn't be passed to the main loop. Thanks for your help.
  4. Hermanator

    Influence of order of parameters in procedure

    I hope that somebody is able to solve this little mystery: I am working on a numerical simulation program. It calculates a certain device current and puts this in an output file. To keep track of the changes I make to the program, I compared the output files of different versions. After making...
  5. Hermanator

    Filter a Range in VBA Excel

    Thank you for your suggestion. Indeed, that would be one way to solve the problem. However, I think that would be a rather time-consuming way since, in reality the range to be evaluated is quite large. So it has to go trough all cells to check if the value is <0. I was hoping to find a way to...
  6. Hermanator

    Filter a Range in VBA Excel

    Hello, This is what I'm trying to achieve: I have a worksheet with 2 columns of data as follows: 1 A B 2 2 243 3 1 12 4 0 55 5 -1 1 6 -2 23 7 -3 12 I want to perform some calculations on these values, but only on the negative X-values. I can set a range in...
  7. Hermanator

    [EXCEL] Calculate squares of difference of 2 functions

    Hello all, I have made an Excel sheet that I use to fit some measurement data to a theoretical model. The model is a bit too complicated to fit it automatically, so I fit it manually by tuning a number of parameters. I would like to have a cell display a value as a measure of the accuracy of...
  8. Hermanator

    EXCEL: How to calculate integral of product of two functions ?

    Hello all, I am trying to write a macro in Excel that calculates the CIE color coordinates from a given spectrum. For this I have to calculate the integral of the product of two functions: I = INTEGRAL [ g(X)*h(X) ] dX Both functions are in my excel sheet as 2 arrays. For instance column A...
  9. Hermanator

    Can't import .CSV file from macro

    Whoohoo! Thanks combo! Local:=True does the trick! Just curious: what does Local :=True do actually? The VBA help file doesn't say. About the .CSV format; I realise that using a semicolon as a separater isn't the correct format for a comma separated file. However, when I start a blank workbook...
  10. Hermanator

    Can't import .CSV file from macro

    I know that both OpenText and Open require paremeters. In both cases I correctly use the parameters to set the import options to Delimited, and set the semicolon as delimiter. All of the following options do not work. The file is is opened, but the data of 1 row is put in a single cell...
  11. Hermanator

    Can't import .CSV file from macro

    Hello people, I'm busy programming a simple macro. As part of this macro, a .CSV needs to be imported. The .CSV is formatted as follows: 0.500; 100 1.000; 200 1.500; 500 So a semicolon seperates different columns, and a line-end goes to the next row. I can open the .CSV files without any...
  12. Hermanator

    Excel .XLS files un-accessible

    Both options don't work. Excel freezes when I use Open & Repair and it also freezes when I link to the data inside the sheet by the method as described in the FAQ......
  13. Hermanator

    Excel .XLS files un-accessible

    Hello all, I have a problem with a .xls file that I have on my HD. It's completely unaccessible. When I try to open it with MS Excel (Excel 2002, Office XP), Excel just freezes. When I try to copy it with explorer to another folder or disk, explorer freezes. When I try to copy it with Total...
  14. Hermanator

    File completely un-accessible

    Sorry, I haven't been completely clear. Although I'm on a network, the problem isn't network related. Since the file is located on the hard disk, and can't be copied anywhere else (every program that tries to copy it freezes). In the mean time I have found this article on MS Knowledge Base...
  15. Hermanator

    File completely un-accessible

    Hello all, I have a strange problem, and have absolutely no clue how to solve it. There are a number of files on my HD, that are completely un-accessible. I can't open them and I can't copy them to any other location, with any program. I first had this problem about a week ago. It concerned...
  16. Hermanator

    Excel: Import file into a new sheet (instead of new workbook)

    Hello all, I'm trying to make a VBA macro which imports several text files, and places them into seperate worksheets of the active workbook. This can be done manually very easily by File Open and running the options of the Text Import Wizard. Consequently, the sheet can be moved to the original...
  17. Hermanator

    Make a dynamical dropdown box in Excel

    Great! I didn't realise that it's possible to trigger a VBA macro in excel. I have made a macro and it works OK. There's only one problem. Although the macro gets triggered correctly when I manually insert a worksheet, it doesn't trigger when I copy a worksheet from another workbook into the...
  18. Hermanator

    Make a dynamical dropdown box in Excel

    Hello all, I want to do something, but I'm not sure if it's at all possible. In Excel, I want to have a "pick from list" in a certain cell. The options in that list, should vary, depending on the number and names of the worksheets in the excel file. I have at all no idea wether VBA can be used...
  19. Hermanator

    Retrieve data from changing text file into Excel

    Thanks for your help everyone! It works!
  20. Hermanator

    How to refer to a cell like (row, column) instead of G7

    Hi people, I just have a really stupid question here and I'm amazed that I haven't found the solution yet: In Excel, I want to create a reference to a certain cell, with a variable position. For instance: The number in cell C5 determines the column number of the cell to copy to cell D6. The...

Part and Inventory Search

Back
Top