Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
DMB DMB is offline
external usenet poster
 
Posts: 14
Default Running VBA Code not written within the currrent worksheet

How do I Call procedures from any worksheet. I don't want to have to cut and
paste the code every time.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default Running VBA Code not written within the currrent worksheet


DMB wrote:
How do I Call procedures from any worksheet. I don't want to have to cut and
paste the code every time.


If the sheet with the code is open it will be available. You can run it
from the macro list or assign a tool on a toolbar to run it. If you
want it aways available, put it in your PERSONAL worksheet.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Running VBA Code not written within the currrent worksheet

If you want to call it within the same project (same workbook), then put it
in a general module (in the VBE=Insert=Module).

Then it will be visible throughout the project if you do not declare it as
private.

--
Regards,
Tom Ogilvy

"DMB" wrote in message
...
How do I Call procedures from any worksheet. I don't want to have to cut

and
paste the code every time.



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
Worksheet Change code not running when you just delete data in cells. KimberlyC Excel Programming 0 June 23rd 05 01:43 AM
running-total formulas written from one spreadsheet to another Neumeister Excel Programming 3 December 11th 04 12:14 AM
Programmely written code don't work Flemming Dahl[_2_] Excel Programming 8 March 1st 04 09:27 PM
Userfrom code in written in Excel 2000 running in Excel 97 KimberlyC Excel Programming 1 February 11th 04 08:45 PM
Running Code in an XLA from a Worksheet Chrissy[_4_] Excel Programming 6 October 11th 03 11:27 PM


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