$$Excel-Macros$$ Re-creating a userform

2011-04-28 Thread JYH
I am trying to create a UserForm X. If, for whatever reason, form X already exist, I want to remove it and re-create it again. Sounds simple, right? Here's the code: Dim TempForm As Object ' VBComponent On Error Resume Next Set TempForm = ThisWorkbook.VBProject.VBComponents("Bob")

$$Excel-Macros$$ Re: Know about VBA Programming

2011-04-28 Thread JYH
Two essentials: http://www.cpearson.com/Excel/MainPage.aspx http://www.ozgrid.com/ If you have basic Programing knowledge, these two sites should have nearly everything you need. If you don't, get a basic cours in programing first. -- ---

Re: $$Excel-Macros$$ Re:Data - text to date format

2011-04-17 Thread JYH
That solution, although not entirely wrong, would not work on all computers. This is mainly caused because there are many potential problems : 1) the date items separator (here ".") 2) the date structure of the text field (here it is "ddmm") 3) the date structure as used by your system (could

$$Excel-Macros$$ How to copy ThisWorkbook events code into another "thisworkbook module" on another workbook

2010-09-23 Thread JYH
Good day everyone, I have a small fleet of Excel apps who, sometime, need updating. For modules, I simply ThisWorkbook.VBProject.VBComponents("WhateverModule").Export tempFile DestWbk.VBProject.VBComponents.Import tempFile Kill (tempFile) But I can not use the same code to import int

$$Excel-Macros$$ How to copy ThisWorkbook events code into another "thisworkbook module" on another workbook

2010-09-23 Thread JYH
Good day everyone, I have a small fleet of Excel apps who, sometime, need updating. For modules, I simply ThisWorkbook.VBProject.VBComponents("WhateverModule").Export tempFile DestWbk.VBProject.VBComponents.Import tempFile Kill (tempFile) But I can not use the same code to import int