Results 1 to 6 of 6

Open workbook as variable

Threaded View

Karen311261 Open workbook as variable 01-29-2012, 06:17 AM
OnErrorGoto0 Re: Open workbook as variable 01-29-2012, 06:19 AM
mrice Re: Open workbook as variable 01-29-2012, 06:21 AM
pike Re: Open workbook as variable 01-29-2012, 06:24 AM
Karen311261 Re: Open workbook as variable 01-29-2012, 06:31 AM
pike Re: Open workbook as variable 01-29-2012, 06:56 AM
  1. #1
    Registered User
    Join Date
    05-26-2010
    Location
    Kent
    MS-Off Ver
    Excel 2003
    Posts
    53

    Open workbook as variable

    Hi All

    I am trying to run a macro but want to use the name of the open workbook to declare a variable
    So in this case I want to replace ("BANK_Architect_Template.xls") with the open workbook name,


    "Set T_Site = Workbooks("BANK_Architect_Template.xls").Sheets("ReportControl").Range("A1")
    Dim TSite As String
    TSite = T_Site.Offset(4, 3).Value"

    Any help would be appricarted
    Thanks
    Karen
    Last edited by Karen311261; 01-29-2012 at 06:32 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1