+ Reply to Thread
Results 1 to 6 of 6

Macro to perform actions in passive sheet

  1. #1
    Registered User
    Join Date
    08-17-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    85

    Macro to perform actions in passive sheet

    I've got this code and I would like if it's possible to activate it without activating sheet "BT+"
    I've tried with "With Sheets("Sheet Name")" instead of "
    Sheets("BT+").Select" and it doesn't work.


    Please Login or Register  to view this content.
    Last edited by Jovica; 12-13-2012 at 04:01 PM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to perform actions in passive sheet

    You can use With and End and no need to select the sheet as long as the sheet is on the same workbook. You also have set long as range (r2 ). I do not know what are you trying to do on this line
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-17-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Macro to perform actions in passive sheet

    I've got compile error with your code (Expected Sub...), anyway I've tried
    Please Login or Register  to view this content.
    instead of
    Please Login or Register  to view this content.
    and it doesn't work (it does not perform those actions in sheet (BT+) but in active sheet.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,659

    Re: Macro to perform actions in passive sheet

    Try this...

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-17-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Macro to perform actions in passive sheet

    Thanks for quick reply. Previous code was trying to find first empty cell in column C not first cell after C2. Last macro overwrites previously entered data.

  6. #6
    Registered User
    Join Date
    08-17-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Macro to perform actions in passive sheet

    It does work, I've just changed C2 to C3 (C2 is empty cell).

    Thank you so much.

+ 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