LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBA Permanent Code

Does anyone know how reference a cell in VBA and be able to use that
reference in another method?

For example:
sub test1()

date = sheets("today").range("D2")

end sub

sub test2()

msgbox = "today's date is " & date

end sub

Can not seem to be able to set Date Permanently so that I can use the
reference
in any method I want. Once it goes to the second sub, date is dropped
and now empty.

Thank you for helping me out. I appreciate any help I can get.

Kevin Yang

 
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
Date is not permanent paintbrush New Users to Excel 2 November 12th 09 03:36 PM
how do you get a permanent cache? Excel Cache Excel Discussion (Misc queries) 18 November 3rd 08 02:38 PM
Permanent Reference Huber57 Excel Discussion (Misc queries) 1 January 24th 07 03:47 AM
Permanent formula? Orangepegs Excel Worksheet Functions 1 January 12th 07 07:41 PM
Permanent Variable? Random Excel Programming 3 August 15th 03 02:52 AM


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