+ Reply to Thread
Results 1 to 8 of 8

VBA gives results in active sheet (sheet1) instead of sheet2

  1. #1
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Azerbaijan
    MS-Off Ver
    Excel 2016
    Posts
    145

    VBA gives results in active sheet (sheet1) instead of sheet2

    Hey Dear community,

    i have command button on sheet1, when used it should get results in sheet2 V5 but it gives results in active sheet only.

    Can anybody help me please?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: VBA gives results in active sheet (sheet1) instead of sheet2

    Please Login or Register  to view this content.
    Mark "Solved" for
    https://www.excelforum.com/excel-pro...ate-range.html

  3. #3
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Azerbaijan
    MS-Off Ver
    Excel 2016
    Posts
    145

    Re: VBA gives results in active sheet (sheet1) instead of sheet2

    Thank you very much, gonna try now.

    BTW how can i mark solved?

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: VBA gives results in active sheet (sheet1) instead of sheet2


  5. #5
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Azerbaijan
    MS-Off Ver
    Excel 2016
    Posts
    145

    Re: VBA gives results in active sheet (sheet1) instead of sheet2

    Can you please tell me how can i count if urun (A:A) is not blank?

    This is not working

    Cells(5, "AD") = [sum(if((isnumber(match(Musteri,market,0)))*(sifaris>0)*(urun "<>",printed))]

  6. #6
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: VBA gives results in active sheet (sheet1) instead of sheet2

    Maybe try urun<>""

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: VBA gives results in active sheet (sheet1) instead of sheet2

    Is the one I posted working or not?

  8. #8
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Azerbaijan
    MS-Off Ver
    Excel 2016
    Posts
    145

    Re: VBA gives results in active sheet (sheet1) instead of sheet2

    it is giving result on sheet2 but all results are zero :/
    Please Login or Register  to view this content.
    Thanks kersplash it is working
    Last edited by Akbarov; 12-13-2018 at 05:21 AM.

+ 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. Replies: 1
    Last Post: 01-24-2017, 11:33 PM
  2. [SOLVED] How to keep sheet1(output) active while searching sheet2(data) stop sheet switching
    By khhoa in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-14-2014, 08:18 PM
  3. Replies: 6
    Last Post: 07-25-2013, 02:58 PM
  4. Finding Active Row in sheet1 from sheet2
    By mrall in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-03-2012, 11:26 AM
  5. Replies: 13
    Last Post: 07-27-2011, 02:30 PM
  6. compare Sheet1 against Sheet2 with highlighting results in Sheet1
    By mariposa in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-27-2011, 12:17 AM
  7. Replies: 1
    Last Post: 07-26-2011, 02:43 PM

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