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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by cg084

  1. cg084

    Extract Field names, types etc froma table.

    Hello, I have been tasked with reviewing a whole host of databases. There are about 70 databases which i need to review. I need to analyise all aspects of these databases. This includes all the field names in each table as well as the field names a description of the format and attributes of...
  2. cg084

    Inserting code for worksheet object event

    Hi All, I have managed to figure it out. This wont work cause it wants to put the code in a module. So replace Sheets(1).Name with "Module1" it will need to exist before hand though. ActiveWorkbook.VBProject.VBComponents(Sheets(1).Name).CodeModule.addfromstring _ "Private Sub...
  3. cg084

    Inserting code for worksheet object event

    Hi All, I am using a similar method. ActiveWorkbook.VBProject.VBComponents(Sheets(1).Name).CodeModule.addfromstring _ "Private Sub Worksheet_Change(ByVal Target As Range)" & vbCrLf & vbTab & _ "MyRow = Target.Row" & vbCrLf & _ "Cells(MyRow, 22).Value = Date" & vbCrLf & _ "End...
  4. cg084

    Open if file less than 7 days old

    Hi, I just wanted to see if anyone had any thoughts with why a normal filepath works ok with the above but when i change to use a path to a webfile it does not. Thank you. CG084
  5. cg084

    Database window locks when form opens.

    Ken, Many thanks for that. It was indeed opening in modal mode. I never came across that behaviour before. But then i was using Access 2k before. Many thanks Craig.
  6. cg084

    Database window locks when form opens.

    Hello, This has got me stumped. I have been asked to amend a database very simple chance i just have to add a single field to a couple of tables and forms. But i have noticed that i am unable to use the database window while i have a form open. I am finding this rather strange. It is something...
  7. cg084

    Open if file less than 7 days old

    Sam, Greatly appreciate the help. It now works with a local or a named drive. Your help is greatly appreciated. There is still a problem in accessing the file on an internet server. My open file macro works with the same string but does not work in this method. Due to the nature of the file...
  8. cg084

    Open if file less than 7 days old

    Sam, Cheers for the help. I am still a little stuck though. The function seems to do not a lot. I have entered the funtion in to my personal.xls spreadsheet that loads by default when excel opens. From this file i have a macro that will open the file i need from a web server...
  9. cg084

    Open if file less than 7 days old

    Hello, I am trying to write a macro that will check to see if a text file is less than 7 days old. If it is to open the file. The name of the file is fixed and is created though an automated query on a database. The file output is a pipe (|) delimited text file. The file is called. Cluster.txt...
  10. cg084

    Help to copy macro to another workbook.

    Hello, I am trying to create a macro that will copy a different macro in workbook1 to a named sheet in another workbook. e.g Workbook 1 Contains Sheet1 Contains MacroA Workbook2 Contains Sheet1 I need to write a macro that will copy Workbook 1 Sheet1 MacroA and place it in...
  11. cg084

    Error removing Excel toolbar button in macro

    macropod, You spotted that. I forgot to mention that this toolbar allready has 2 buttons on it. So when the above subs run it should add it after them. Cheers CG084
  12. cg084

    Error removing Excel toolbar button in macro

    Hello, I have added a button on to a toolbar in excel through the use of a macro. I would like to remove just this one button from the curtom toolbar. I have used the following code to create the button on the toolbar and the second sub is to remove the button when clicked. Sub...
  13. cg084

    Error removing toolbar button in macro

    Hello, I have added a button on to a toolbar in excel through the use of a macro. I would like to remove just this one button from the curtom toolbar. I have used the following code to create the button on the toolbar and the second sub is to remove the button when clicked. Sub...
  14. cg084

    Wait and then Resume

    Hi all, I have code that will run through all the open spreadsheets and make a check on them. When a sheet Fails i want the code to pause while the operator has change to close, save & close the spreadsheet or to make amendments. I would like to resume the code from where it paused through the...
  15. cg084

    Count of open workbooks

    Thank you for your help. CG084

Part and Inventory Search

Back
Top