Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Assistance with variables defined outside of macro

I have the following (very abbreviated macro)

Sub AllSummary()
Dim Tabname As String
Tabname = "SUMMARY (A)"
Call SheetSummary
End Sub

What do I need to do within SheetSummary so that it recognizes the Tabname
defined here?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Assistance with variables defined outside of macro

Give this a whirl...

Sub AllSummary()
Dim Tabname As String
Tabname = "SUMMARY (A)"
Call SheetSummary(Tabname)
End Sub

Sub SheetSummary(ByVal strSheetName as string)
msgbox strSheetName
end sub

--
HTH...

Jim Thomlinson


"Barb Reinhardt" wrote:

I have the following (very abbreviated macro)

Sub AllSummary()
Dim Tabname As String
Tabname = "SUMMARY (A)"
Call SheetSummary
End Sub

What do I need to do within SheetSummary so that it recognizes the Tabname
defined here?

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
Macro assistance Rover Excel Worksheet Functions 11 March 17th 09 04:30 PM
Macro assistance dthompson Excel Programming 2 July 7th 05 05:07 PM
User Defined Variables in MS query cause a problem to import data snb Excel Discussion (Misc queries) 0 April 13th 05 12:16 AM
Macro Run-time Error 1004 Application Defined or Object Defined Error Anddmx Excel Programming 6 June 9th 04 03:40 PM
User defined Spreasheet Functions - How to add "help/ assistance comments" Adrian[_5_] Excel Programming 2 April 23rd 04 02:53 PM


All times are GMT +1. The time now is 01:54 AM.

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"