PC Review


Reply
 
 
=?Utf-8?B?cGFya2luX20=?=
Guest
Posts: n/a
 
      6th Aug 2007
I have a excel document which contains a template for an invoice.

I am going to create a userform in excell which will show itself whenever a
new document is created, allowing the user to pick a client name and then
select an address which will then populate the excel document.

I have done this before using word where i did:

(in autonew macro)
userform1.show

(in userform1 form)
//do vba code to enter information

I tried to do this using excell but autonew macro doesnt seem to self
execute like in word. Is there a simple solution?

Thanks
 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      6th Aug 2007
The equivalent macro name in Excel is Auto_Open.

--
Jim
"parkin_m" <(E-Mail Removed)> wrote in message
news:7F150E0E-9502-46C7-B0A9-(E-Mail Removed)...
|I have a excel document which contains a template for an invoice.
|
| I am going to create a userform in excell which will show itself whenever
a
| new document is created, allowing the user to pick a client name and then
| select an address which will then populate the excel document.
|
| I have done this before using word where i did:
|
| (in autonew macro)
| userform1.show
|
| (in userform1 form)
| //do vba code to enter information
|
| I tried to do this using excell but autonew macro doesnt seem to self
| execute like in word. Is there a simple solution?
|
| Thanks


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      6th Aug 2007
AutoNew is the name of the MSWord macro.

In excel, you can use Auto_Open (in a general module) or Workbook_Open (in the
ThisWorkbook module).



parkin_m wrote:
>
> I have a excel document which contains a template for an invoice.
>
> I am going to create a userform in excell which will show itself whenever a
> new document is created, allowing the user to pick a client name and then
> select an address which will then populate the excel document.
>
> I have done this before using word where i did:
>
> (in autonew macro)
> userform1.show
>
> (in userform1 form)
> //do vba code to enter information
>
> I tried to do this using excell but autonew macro doesnt seem to self
> execute like in word. Is there a simple solution?
>
> Thanks


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
autonew macros in forms =?Utf-8?B?QmVjb3Q=?= Microsoft Word Document Management 2 15th Feb 2006 08:08 PM
Macro, autonew =?Utf-8?B?SGVnZSBN?= Microsoft Powerpoint 1 5th Feb 2006 06:24 PM
AutoNew =?Utf-8?B?U3RldmUgQw==?= Microsoft Excel Programming 2 22nd Nov 2005 01:41 PM
Re: AutoNew Macro Charles Kenyon Microsoft Outlook VBA Programming 4 23rd Aug 2005 04:17 PM
AutoNew Kas Microsoft Excel Programming 2 20th Nov 2003 03:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:48 PM.