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 strongm 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. Greedo

    Password Protection

    I have an Excel macro that I programmed in Visual Basic. I would like to keep it so people that have the macro can't go digging around in my code. Does anyone know how to put this sort of password protection on? Thanks.
  2. Greedo

    VB Macro with more than one output

    Its been fixed- the problem is that what I was trying to do is actually impossible. I wanted to have a single macro output the results of two different but related calculations into two different cells. So your solution really wouldn't have done it. Thanks though. For those of you watching...
  3. Greedo

    Macro to Add In?

    I have a finished macro but am now interested in making it an add in. Does anyone know how to do this?
  4. Greedo

    VB Macro with more than one output

    ok, its that thing that means im out of luck. to get around this then do i have to have a second macro that is identical to the first but has the second bit as the inportant part? do i need to change varialbe names or anyhting?
  5. Greedo

    VB Macro with more than one output

    I have made a VB macro that has more than one output but I am having trouble getting the two outputs into the correct cells. I have one cell whose formula is =Function(A, B). That one works fine but the Function also needs to put data into a cell that is two cells to the right (ie, Function is...
  6. Greedo

    VB Macro with more than one output

    I have made a VB macro that has more than one output but I am having trouble getting the two outputs into the correct cells. I have one cell whose formula is =Function(A, B). That one works fine but the Function also needs to put data into a cell that is two cells to the right (ie, Function is...
  7. Greedo

    For-Next not going to completion

    Actually, with that last little detail everything is running smoothly. Jim- I'm actually glad you missed it too, I felt like a jackass sitting here by myself. Anyway, if anyone is interested, this is what the program should do (although, like I said I don't need anything else, this is just if...
  8. Greedo

    For-Next not going to completion

    It says that Option Explicit can't be used here. Only in procedures or something. This is not the complete code but it very nearly is. The variables are scanned in from Excel at the beginning and the output is... outputted back into Excel at the end. It looks something like: Dimming of...
  9. Greedo

    For-Next not going to completion

    I have a for next loop that is supposed to go from 1 to 4 but stops at 1.5. If anyone can see anything wrong I would appreciate hearing about it. Dim varOne(4) As Single Static A(4, 8) As Double Dim Total As Double Static varTwo(4, 8) As Double Dim Max As Double For D = 1 To 4 Step 1...
  10. Greedo

    Excel to VB

    Thanks, yeah that worked. In the process it has, however, become clear that there is another problem. Again, foada, I have spent about 4 days trying everything under the sun to make that work. You have no idea how grateful I am.
  11. Greedo

    Excel to VB

    That is pretty close to what I want to do. The cells aren't all nicely arranged though. One is in B20 the other is B18 etc. So, if I understand this (which is possible I suppose) what I want to do is use pretty much the lines you have but add some more of them. So it would look like: For iR...
  12. Greedo

    Excel to VB

    I posted this before and I got some help but I think I wasn't really clear enough about the problem. I am trying to get about 6 cells worth of data from one sheet in excel, about 4 cells worth from another sheet, do some simple calculations with those numbers, and then put the results into a...
  13. Greedo

    Excel to VB

    I posted this before and I got some help but I think I wasn't really clear enough about the problem. I am trying to get about 6 cells worth of data from one sheet in excel, about 4 cells worth from another sheet, do some simple calculations with those numbers, and then put the results into a...
  14. Greedo

    Getting Data from Excel to VB

    OK. This is what I have (some old code was just 'ed and the dimming isn't included but I think you can figure out what this is. Its still not working though. It stops between the Set wkb line adn the Set wks line. Any suggestions? ' Create App,Book,Sheet objects Set objXL =...
  15. Greedo

    Getting Data from Excel to VB

    I forgot to say what SolarLoadIntensity is although it should be somewhat self explanatory. This variable is dependent on the direction so that SolarLoadIntensity(1) is used with windim(1,1 ) to calculate the solar load coming in the front window when traveling north. Also, I won't need to...
  16. Greedo

    Getting Data from Excel to VB

    OK, you guys really are helping me quite a bit. I haven't programmed anything for about three years and back then it was in C. Anyway, enough of me, more about my problem. Here is the code I have in there right now. I'm calculating heat flow into a car. Since the sun shines in a specific...
  17. Greedo

    Getting Data from Excel to VB

    Well that is an unsettling though Stewart because I thought I understood your submission pretty well. Nikita- let me look at yours again and see if I can follow it.
  18. Greedo

    Getting Data from Excel to VB

    Alright, so I`m dumber than I thought. I do need a bit more help. Let`s assume the file name is Greedo.xls and the worksheet is called Greedois(retarded). Also, later on I will need to get some more data out of a different worksheet in the same file. Do I need to do anything differently...
  19. Greedo

    Getting Data from Excel to VB

    I am trying to get data from a spreadsheet into a VB file for a macro. There aren`t any manuals here in English so although I`m sure this is an easy question I have no way of looking it up. Anyway, I think I can do this using automation. I only need to get about 10 cells worth of data into the...

Part and Inventory Search

Back
Top