MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old Mar 18th, 2003, 06:47 PM   #1
mcgew
 
Join Date: Sep 2002
Location: Bristol
Posts: 71
Default Worksheet object code

I've written some code in ms excel objects, for a worksheet, and want to call code for another objects worksheet at the end. I've tried

Sub Sheet1()
(code)
Call Sheet2

End Sub
................
Sub Sheet2()
(code)
End Sub

but when i try to run it it says there's an expected function or variable. it works when i use modules but for this code i need it in the worksheet.
any suggestions?
mcgew is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

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 On

Forum Jump


All times are GMT +1. The time now is 07:30 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.