Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Get outlook to start a userform in excel.

I have a outlook code to open an excel spread sheet when outlook is
opened.
What I need now is for it to start a user form in that spread sheet.

Please see code

Thanks

Private Sub Application_Startup()
Folder = "\\Mascarolinabdc\puball\Stuff ~ Stephen\"
FName = "NPI email macro.xls"
On Error Resume Next

Set excelbook = GetObject(Folder & FName)

With excelbook
.Application.Visible = True
.Parent.Windows(FName).Visible = True


End With

End Sub
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call Outlook Contacts from Excel Userform RyanH Excel Programming 1 June 26th 08 11:37 AM
VBA Pause to allow Print to start. sending fax via Outlook James D Smooth Excel Programming 0 March 17th 08 03:18 PM
Build a userform on excel to copy contacts from outlook 2003 Oggy Excel Programming 1 January 2nd 07 05:48 PM
I deleted MS Outlook from my start menu, now EXCEL won't work? cobbga Excel Discussion (Misc queries) 0 June 23rd 05 03:00 AM
Can't start outlook from Excel Susan Lammi[_2_] Excel Programming 4 February 9th 04 11:28 PM


All times are GMT +1. The time now is 06:17 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"