Results 1 to 3 of 3

Reference Variable Sheet in macro

Threaded View

  1. #1
    Registered User
    Join Date
    01-09-2006
    Posts
    16

    Reference Variable Sheet in macro

    I have used coding similar to the following before:
     ActiveCell.FormulaR1C1 = "=Sheet1!R[3]C[3]"

    However, in this instance, my sheet is a variable (strSheet) and I can't quite get the syntax right. So far, I have tried the following to no avail:
    ActiveCell.FormulaR1C1 = "=strSheet!R[3]C[3]"
    ActiveCell.FormulaR1C1 = "=&strSheet&!R[3]C[3]"
    Any help would be greatly appreciated!
    Last edited by VBA Noob; 04-12-2007 at 03:02 PM.

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