Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Open a userform of one spread sheet with another spread sheet

I am wondering how I can open "userform16" from a spread sheet called
"NPI data entry form" with another spread sheet called "TEAH entry"

Both sheets would be open
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Open a userform of one spread sheet with another spread sheet

one way. in the workbook with the userform, i used a workbook named weekly.xls:

Sub test2()
UserForm16.Show
End Sub


then in the other workbook

Sub test()
Application.Run "Weekly.xls!test2"
End Sub




--


Gary


wrote in message
...
I am wondering how I can open "userform16" from a spread sheet called
"NPI data entry form" with another spread sheet called "TEAH entry"

Both sheets would be open



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Open a userform of one spread sheet with another spread sheet

On Aug 8, 5:22*pm, "Gary Keramidas" <GKeramidasATmsn.com wrote:
one way. in the workbook with the userform, i used a workbook named weekly.xls:

Sub test2()
UserForm16.Show
End Sub

then in the other workbook

Sub test()
Application.Run "Weekly.xls!test2"
End Sub

--

Gary

wrote in message

...



I am wondering how I can open "userform16" from a spread sheet called
"NPI data entry form" with another spread sheet called "TEAH entry"


Both sheets would be open- Hide quoted text -


- Show quoted text -


If I run the macro to run the userform from the same spread sheet it
works but if I run the macro that runs the macro I get a subscript out
of range error
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Open a userform of one spread sheet with another spread sheet

not sure what's going on without seeing it.

--


Gary


wrote in message
...
On Aug 8, 5:22 pm, "Gary Keramidas" <GKeramidasATmsn.com wrote:
one way. in the workbook with the userform, i used a workbook named
weekly.xls:

Sub test2()
UserForm16.Show
End Sub

then in the other workbook

Sub test()
Application.Run "Weekly.xls!test2"
End Sub

--

Gary

wrote in message

...



I am wondering how I can open "userform16" from a spread sheet called
"NPI data entry form" with another spread sheet called "TEAH entry"


Both sheets would be open- Hide quoted text -


- Show quoted text -


If I run the macro to run the userform from the same spread sheet it
works but if I run the macro that runs the macro I get a subscript out
of range error


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Open a userform of one spread sheet with another spread sheet

when i use this:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.Run "NPI data entry form.xls!Macro1"
End Sub

it says it cannot find the macro

when i use this
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.Run "'NPI data entry form.xls'!Macro1"
End Sub

i get subcript out of range


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Open a userform of one spread sheet with another spread sheet

I got it working
Thanks

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Open a userform of one spread sheet with another spread sheet

ok, good to hear.

--


Gary


wrote in message
...
I got it working
Thanks



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
Time to open spread sheet STS Excel Discussion (Misc queries) 4 December 21st 06 08:54 PM
how do i enter a bull call spread into the options spread sheet ? alvin smith Excel Worksheet Functions 0 November 27th 06 01:23 AM
can not open spread sheet file not recognised bikemad Excel Discussion (Misc queries) 0 October 23rd 06 08:58 PM
how to open a spread sheet email Angie New Users to Excel 3 December 5th 05 06:47 PM
Open a Spread Sheet In a Mdi form In Vb.net WStoreyII[_2_] Excel Programming 0 August 17th 04 11:14 PM


All times are GMT +1. The time now is 02:04 AM.

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"