+ Reply to Thread
Results 1 to 2 of 2

Referencing Inactive Workbook Cells

  1. #1
    Registered User
    Join Date
    07-14-2009
    Location
    London,England
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    17

    Referencing Inactive Workbook Cells

    Good morning all

    Hope someone can provide some help here. I have created a macro that takes a specific worksheet from the workbook and saves it as its own workbook (code shown below) referencing 2 cells in the worksheet as the filename.

    Sub Savefile()

    'opening workbook

    ActiveSheet.Copy ' Copies active sheet to a new workbook
    ActiveWorkbook.SaveAs Range("H6").Value & Range("H7")

    End Sub

    However, as part of the filename, I would also like to include a cell from a different worksheet in the original workbook (location shown below)

    workbook name: version2.xls
    worksheet: MasterDMA
    cell: E6

    Please could someone provide advise on how to reference that cell as well within the filename.

    Thanks so much

    Regards,
    PVANS

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Referencing Inactive Workbook Cells

    Hi,
    You just need to specify:
    Please Login or Register  to view this content.
    when referring to that cell.
    Remember what the dormouse said
    Feed your head

+ Reply to Thread

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