A AnnPhil Registered User. Local time Today, 18:04 Joined Dec 18, 2001 Messages 246 Apr 23, 2003 #1 is there a way to have the rename macro prompt the user for the name? thanks in advance
Mile-O Back once again... Local time Today, 18:04 Joined Dec 10, 2002 Messages 11,305 Apr 24, 2003 #2 Create a new module and put these lines of code: Code: Function GetTableName() As String GetTableName = InputBox("What do you want to call this new table?", "Renaming Table") End Function Now, in your macro, where it says: New Name, put:- =GetTableName() That should do what you want. Ideally, you'd get more functionality and error handling (macros don't even have this capability) by using forms and code to do what you wish. Try converting the macro to VBA to get the code and see how the structure works.
Create a new module and put these lines of code: Code: Function GetTableName() As String GetTableName = InputBox("What do you want to call this new table?", "Renaming Table") End Function Now, in your macro, where it says: New Name, put:- =GetTableName() That should do what you want. Ideally, you'd get more functionality and error handling (macros don't even have this capability) by using forms and code to do what you wish. Try converting the macro to VBA to get the code and see how the structure works.
A AnnPhil Registered User. Local time Today, 18:04 Joined Dec 18, 2001 Messages 246 Apr 24, 2003 #3 Thanks very much, it worked great!!!!!