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

    Adding event code to a Command Button on a worksheet

    Thanks Ivan - That looks like it will do the trick! As a separate but related question, do you know of a way to write code from one vba project to another? I work with a lot of .xla's to process .xls and .txt files in my work, and some of the data processing can get fairly complicated...
  2. Rissolo

    Adding event code to a Command Button on a worksheet

    Hi, I am having difficulty adding code to a commandbutton and wondered if anyone has a solution for how to do this. Brief description: I create a worksheet on an open workbook by code (from a remote xla). I add a button to that worksheet by code. I want to assign event code to that...
  3. Rissolo

    pastespecial problems

    Looking further into your code, I am a little confused as to what you are trying to do. I think you are trying to copy from multiple worksheets in a source workbook and transfer (and transpose) that data into consecutive areas on the same worksheet in a compilation workbook. After you have...
  4. Rissolo

    pastespecial problems

    Hi Carl, The problem isn't in your definition of the pastespecial line. Since you are switching between workbooks, you need to activate the destination workbook before attempting to paste the cell values into the defined range. You may wish to define a Workbook variable for the destination...
  5. Rissolo

    How do I copy code modules from a remote file (VBA-Excel)

    This is either one question or two: As 2 Questions (excel 2000): 1.) How do I create a command button on a worksheet using code and have it run a macro located in a remote code module (.xla) I know the ActiveSheet.OLEObjects.("cmdButton1").Object.OnAction = "MacroName&quot...

Part and Inventory Search

Back
Top