+ Reply to Thread
Results 1 to 2 of 2

Avoid Switching Sheets, Reference Sheet Without Switching Instead.

  1. #1
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    Avoid Switching Sheets, Reference Sheet Without Switching Instead.

    Here is the code:

    Please Login or Register  to view this content.
    I would like to be able to use the TargetRange variable instead of J2:J30000, as it is dynamic, and I wouldn't have to switch sheets to do the calculation. But it doesn't seem to want to take a variable or a concatenation thereof.

    Essentially, I need the VBA equivalent of the non-VBA 'Sales History'!J2:J30000, which I thought I had covered in the TargetRange variable.
    Thank You,

    EnigmaMatter

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: Avoid Switching Sheets, Reference Sheet Without Switching Instead.

    No workbook; no test

    Please Login or Register  to view this content.
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Switching to different workbooks & sheets
    By bsturds in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-25-2014, 07:10 PM
  2. Macro should run without switching sheets
    By barnett2000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-14-2013, 02:58 PM
  3. Switching EXCEL windows using a cell reference
    By JGB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2011, 09:56 AM
  4. Stop sheets switching
    By sigfreid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-13-2009, 07:35 AM
  5. VBA 400 Error when switching sheets
    By gugy27 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2009, 03:31 PM
  6. Help on Add-in for switching between sheets
    By muster in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2006, 09:39 AM
  7. Controlling switching to other sheets
    By Gordon Smith \(eMVP\) in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-15-2006, 02:15 AM

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