Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default first user form

Private Sub CommandButton1_Click()
Application.Run ("2006vets.xls.Macro1")
End Sub
This macro is module17 in the workbook. Yet it says it cannot find. Useing a
command button. The workbook is opened and the form comes up. I must be
missing something.
any help is appreciated
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default first user form

It should be

Private Sub CommandButton1_Click()
Application.Run "2006vets.xls!Macro1"
End Sub

but if it is the same workbook, you don't even need Application.Run, just

Call Macro1


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Curt" wrote in message
...
Private Sub CommandButton1_Click()
Application.Run ("2006vets.xls.Macro1")
End Sub
This macro is module17 in the workbook. Yet it says it cannot find. Useing
a
command button. The workbook is opened and the form comes up. I must be
missing something.
any help is appreciated
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default first user form

Thanks much works now

"Bob Phillips" wrote:

It should be

Private Sub CommandButton1_Click()
Application.Run "2006vets.xls!Macro1"
End Sub

but if it is the same workbook, you don't even need Application.Run, just

Call Macro1


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Curt" wrote in message
...
Private Sub CommandButton1_Click()
Application.Run ("2006vets.xls.Macro1")
End Sub
This macro is module17 in the workbook. Yet it says it cannot find. Useing
a
command button. The workbook is opened and the form comes up. I must be
missing something.
any help is appreciated
Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default first user form

useing option buttons some work with call others don't. anyway all are
working. Problem now a dot apears in circle in front of name. If I close and
return the dot reapears in same location. Can not activate till itis gone.
Have a blank option button that I check on it moves to that option then other
one will work. Is there a properties value I am not seeing to remove this dot.
Thanks Again

"Bob Phillips" wrote:

It should be

Private Sub CommandButton1_Click()
Application.Run "2006vets.xls!Macro1"
End Sub

but if it is the same workbook, you don't even need Application.Run, just

Call Macro1


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Curt" wrote in message
...
Private Sub CommandButton1_Click()
Application.Run ("2006vets.xls.Macro1")
End Sub
This macro is module17 in the workbook. Yet it says it cannot find. Useing
a
command button. The workbook is opened and the form comes up. I must be
missing something.
any help is appreciated
Thanks




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default first user form

Just to let you know I found the property that was causeing the problem
Thanks

"Bob Phillips" wrote:

It should be

Private Sub CommandButton1_Click()
Application.Run "2006vets.xls!Macro1"
End Sub

but if it is the same workbook, you don't even need Application.Run, just

Call Macro1


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Curt" wrote in message
...
Private Sub CommandButton1_Click()
Application.Run ("2006vets.xls.Macro1")
End Sub
This macro is module17 in the workbook. Yet it says it cannot find. Useing
a
command button. The workbook is opened and the form comes up. I must be
missing something.
any help is appreciated
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
How do I fill a cell in a user form from a selection on same form? Terry Tipsy Excel Discussion (Misc queries) 4 June 11th 07 02:59 PM
How to show User Form when form name is in string? Don Wiss Excel Programming 2 December 9th 06 03:52 AM
How to: User Form to assign a user defined range to a macro variab TrevTrav Excel Programming 1 March 22nd 05 07:57 PM
I am looking to see if anybody has an equivalant user form to Outlooks CONTACT form BruceJ[_2_] Excel Programming 2 October 15th 03 05:28 PM


All times are GMT +1. The time now is 03:55 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"