Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Possible to nest

I am wanting to run 2 commands when I click a particular button. One command
saves the spreadsheet, the other sends spreadsheet via email. They both work
individually, but when I try to combine, I receive errors.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Possible to nest

It would be a lot easier to find the problem if we could see the code you
are using.


"Dgwood90" wrote in message
...
I am wanting to run 2 commands when I click a particular button. One
command
saves the spreadsheet, the other sends spreadsheet via email. They both
work
individually, but when I try to combine, I receive errors.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Possible to nest

It might help some if you posted your individual commands that work and the
combined command that doesn't work.

--
Rick (MVP - Excel)


"Dgwood90" wrote in message
...
I am wanting to run 2 commands when I click a particular button. One
command
saves the spreadsheet, the other sends spreadsheet via email. They both
work
individually, but when I try to combine, I receive errors.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Possible to nest

Without seeing the code, it is hard to diagnose a problem. However,
you need not merge the two procedures into a single procedure. Just
create a new proc that calls each of your existing procs:

Sub NewProc()
NameOfSaveProcedure
NameOfEMailProcedure
End Sub

Here, NameofSaveProcedure is called and NameOfEmailProcedure will be
callled when the save procedure ends and returns control to the
NewProc. If your two existing procedures work fine independently,
then they will work when called consecutively by another procedure.

Cordially,
Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
[email on web site]




On Wed, 10 Feb 2010 11:38:06 -0800, Dgwood90
wrote:

I am wanting to run 2 commands when I click a particular button. One command
saves the spreadsheet, the other sends spreadsheet via email. They both work
individually, but when I try to combine, I receive errors.

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
Nest no more than seven functions??? Shek5150 Excel Discussion (Misc queries) 5 February 26th 09 06:09 PM
Too many functions to nest? Cerberus Excel Discussion (Misc queries) 3 February 19th 08 02:59 PM
Nest IF....maybe? IF/AND?? Leigh Excel Discussion (Misc queries) 6 December 13th 07 11:03 PM
NEST A IF WITHIN A IF Karine Excel Worksheet Functions 4 November 27th 07 10:11 PM
help with functions to nest [email protected] Excel Worksheet Functions 4 August 7th 06 08:12 PM


All times are GMT +1. The time now is 08:52 PM.

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

About Us

"It's about Microsoft Excel"