PC Review


Reply
Thread Tools Rate Thread

DEclaring variables

 
 
Pedro
Guest
Posts: n/a
 
      13th Nov 2003
Hi
I have declares as a Public variable strNumber doing:
Public strNumber as variant
when the code opens runs other module in a different worksheet the variable
is empty

how to solve it?
thanks
Pedro

ps. Chip thanks for all your help


 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      13th Nov 2003
Pedro,

Are you declaring the variable in a standard code module, rather than a
sheet's code module or a form or ThisWorkbook?


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Pedro" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
> I have declares as a Public variable strNumber doing:
> Public strNumber as variant
> when the code opens runs other module in a different worksheet the

variable
> is empty
>
> how to solve it?
> thanks
> Pedro
>
> ps. Chip thanks for all your help
>
>



 
Reply With Quote
 
Pedro
Guest
Posts: n/a
 
      13th Nov 2003
I am declaring it in the standard module



"Chip Pearson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Pedro,
>
> Are you declaring the variable in a standard code module, rather than a
> sheet's code module or a form or ThisWorkbook?
>
>
> --
> Cordially,
> Chip Pearson
> Microsoft MVP - Excel
> Pearson Software Consulting, LLC
> www.cpearson.com
>
> "Pedro" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi
> > I have declares as a Public variable strNumber doing:
> > Public strNumber as variant
> > when the code opens runs other module in a different worksheet the

> variable
> > is empty
> >
> > how to solve it?
> > thanks
> > Pedro
> >
> > ps. Chip thanks for all your help
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Declaring variables ericb Microsoft Access 9 23rd Feb 2010 05:26 PM
Declaring Variables Twice? Chad Microsoft Excel Programming 2 19th May 2009 11:48 PM
declaring variables... noobee Microsoft VB .NET 3 23rd Dec 2003 12:53 PM
Re: DEclaring variables Pedro Microsoft Excel Programming 1 13th Nov 2003 05:02 PM
Declaring variables HHickey Microsoft Dot NET Framework 1 13th Nov 2003 04:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:35 PM.