Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 181
Default variable declaration for more than one worsheet

How do I declare a variable so it will work on more than one worksheeet while
using macros among both worksheets.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default variable declaration for more than one worsheet

From VBE menu 'Insert' a module and paste the below declaration..

Public strData As String

If this post helps click Yes
---------------
Jacob Skaria


"Alberto Ast" wrote:

How do I declare a variable so it will work on more than one worksheeet while
using macros among both worksheets.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default variable declaration for more than one worsheet

Hi Alberto

Worth reading this article
http://www.ozgrid.com/VBA/variable-scope-lifetime.htm

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

From VBE menu 'Insert' a module and paste the below declaration..

Public strData As String

If this post helps click Yes
---------------
Jacob Skaria


"Alberto Ast" wrote:

How do I declare a variable so it will work on more than one worksheeet while
using macros among both worksheets.

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
Public variable declaration Alberto Ast[_2_] Excel Programming 4 September 19th 09 05:03 PM
Variable Declaration R Tanner Excel Programming 20 June 16th 08 11:54 PM
VBA - variable declaration Jeff Excel Discussion (Misc queries) 3 January 9th 08 12:45 PM
variable declaration Janis Excel Programming 7 July 24th 07 01:46 AM
Variable Declaration?? Tom Ogilvy Excel Programming 1 August 8th 03 06:45 PM


All times are GMT +1. The time now is 09:33 PM.

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"