Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 51

Thread: VBA - Count filtered rows in the table

  1. #21
    Sir Moderator sandy666's Avatar
    Join Date
    May 2018
    Posts
    239
    Rep Power
    7
    can you define encoding UTF 65001 in VBA ?

    if it will be a problem don't worry too much about it
    Last edited by sandy666; 08-23-2023 at 11:31 AM.
    sandy
    I know you know but I forgot my Crystal Ball and don't know what you know also I may not remember what I did weeks, months or years ago so answer asap. Thinking doesn't hurt

  2. #22
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,455
    Rep Power
    10
    Quote Originally Posted by sandy666 View Post
    could you explain what it is for me? What is it needed for?
    It looks like an Excel Userform
    https://www.excel-easy.com/vba/userform.html


    I hardly ever use them. I don’t know so much about them. I never put one in the file FilTit2.xlsm

    I have no idea how it got there. I never put it there

    I didnt put it there.jpg


    As far as I know, you have to put them there. I never saw them come there themselves.
    Perhaps with newer Excel they give you one just to fuck you up a bit more.
    Last edited by DocAElstein; 08-23-2023 at 11:39 AM.

  3. #23
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,455
    Rep Power
    10
    Quote Originally Posted by sandy666 View Post
    can you define encoding UTF 65001 in VBA ?
    No I can't define it. I have no idea at all what it is. I never heard of anything like that ever before

    How about

    Useless Text Fucking format

  4. #24
    Sir Moderator sandy666's Avatar
    Join Date
    May 2018
    Posts
    239
    Rep Power
    7

    Cool

    this is very good format

    I found new shit from MS like:

    it should be OFF
    don't be fooled by UTF-8 because it is UTF-65001
    sandy
    I know you know but I forgot my Crystal Ball and don't know what you know also I may not remember what I did weeks, months or years ago so answer asap. Thinking doesn't hurt

  5. #25
    Sir Moderator sandy666's Avatar
    Join Date
    May 2018
    Posts
    239
    Rep Power
    7
    Quote Originally Posted by DocAElstein View Post
    It looks like an Excel Userform
    https://www.excel-easy.com/vba/userform.html


    I hardly ever use them. I don’t know so much about them. I never put one in the file FilTit2.xlsm

    I have no idea how it got there. I never put it there

    I didnt put it there.jpg


    As far as I know, you have to put them there. I never saw them come there themselves.
    Perhaps with newer Excel they give you one just to fuck you up a bit more.
    you used it in the first version of vba - first file and forgot to remove it
    sandy
    I know you know but I forgot my Crystal Ball and don't know what you know also I may not remember what I did weeks, months or years ago so answer asap. Thinking doesn't hurt

  6. #26
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,455
    Rep Power
    10
    Quote Originally Posted by sandy666 View Post
    you used it in the first version of vba - first file and forgot to remove it
    ?? That is strange. Something weird going on. If I download my first file from here: https://www.excelfox.com/forum/showt...ll=1#post23205 , then I don’t see any UserForm. In any case, as far as I can tell, you never downloaded that. I think I was the first to ever download that just now. That is file FilTit.xlsm

    Your screenshot shows my second file, FilTit2.xlsm
    If I download that from here: https://www.excelfox.com/forum/showt...ll=1#post23220 , then I still see no UserForm
    Still no UserForm.JPG

    I am fairly sure I never added any UserForm to any file.

    Not important, but strange.



    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
    https://www.youtube.com/watch?v=oVb1RfcSHLM&lc=UgwTq-jZlZLnLQ5VB8Z4AaABAg.9Hroz-OyWog9tYjSMc1qjA
    https://www.youtube.com/watch?v=0pbsf6sox34&lc=Ugxp9JFvvejnqA68W1t4AaABAg
    https://www.youtube.com/watch?v=kfQC-sQxMcw&lc=UgyCxQWypNIhG2nUn794AaABAg.9q1p6q7ah839t UQl_92mvg
    https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgyOh-eR43LvlIJLG5p4AaABAg.9isnKJoRfbL9itPC-4uckb
    https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugy1B1aQnHq2WbbucmR4AaABAg. 9isY3Ezhx4j9itQLuif26T
    https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgxxajSt03TX1wxh3IJ4AaABAg. 9irSL7x4Moh9itTRqL7dQh
    https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg. 9irLgSdeU3r9itU7zdnWHw
    https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgwJAAPbp8dhkW2X1Uh4AaABAg. 9iraombnLDb9itV80HDpXc
    https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgzIzQ6MQ5kTpuLbIuB4AaABAg. 9is0FSoF2Wi9itWKEvGSSq
    https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK75iCEaGN
    https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK7XF33njy
    https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCSgpAqA1
    https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCy--3x8E
    https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwNaJiNATXshvJ0Zz94AaABAg. 9iEktVkTAHk9iF9_pdshr6
    https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iFAZq-JEZ-
    https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgxV2r7KQnuAyZVLHH54AaABAg. 9iDVgy6wzct9iFBxma9zXI
    https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG
    https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwnYuSngiuYaUhEMWN4AaABAg. 9iDQN7TORHv9iFGQQ5z_3f
    https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwJ3yzdk_EE98dndmt4AaABAg. 9iDLC2uEPRW9iFGvgk11nH
    https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgyDWAVqCa4yMot463x4AaABAg. 9iH3wvUZj3n9iHnpOxOeXa
    https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwvLFdMEAba5rLHIz94AaABAg. 9iGReNGzP4v9iHoeaCpTG8
    https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iHpsWCdJ5I
    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
    Last edited by DocAElstein; 08-26-2023 at 10:25 PM.

  7. #27
    Sir Moderator sandy666's Avatar
    Join Date
    May 2018
    Posts
    239
    Rep Power
    7
    maybe this is it
    sandy
    I know you know but I forgot my Crystal Ball and don't know what you know also I may not remember what I did weeks, months or years ago so answer asap. Thinking doesn't hurt

  8. #28
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,455
    Rep Power
    10
    No. that is a VBA built in Message Box. We can get it with coding like this
    Code:
    MsgBox Prompt:="Alan Big Cock" & vbCr & vbLf & "big VBA man."

    ( the people at Microsoft who made Excel probably used something like a UserForm to make that VBA built in Message Box. The approximately story is that…..
    …… Excel and Word and similar stuff is made from VBA coding: Excel is just a very long VBA code and it makes a lot of forms. Basically we having access to VBA is like being able to manipulate and change that coding.
    For example: When Excel first opens, there is a lot of coding which opens it.
    Because Microsoft lets us, and because I am so incredibly big and clever VBA man, and have a big brain, I can put that coding above into the coding that works when you open Excel.

    So, if/ when you get macros enabled in your Excel, then open the attached file:
    As it opens it will run that coding above, because I have figured out how to put that coding inside the coding that runs when the file is opened )

    Alan Big Cock big VBA man.jpg
    Attached Files Attached Files

  9. #29
    Sir Moderator sandy666's Avatar
    Join Date
    May 2018
    Posts
    239
    Rep Power
    7
    it looks like you say that by opening a clean excel xlsm file I can see a lot of some vba code
    sandy
    I know you know but I forgot my Crystal Ball and don't know what you know also I may not remember what I did weeks, months or years ago so answer asap. Thinking doesn't hurt

  10. #30
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,455
    Rep Power
    10
    No. Microsoft do not let us see all the VBA coding that makes Excel work.
    Probably Microsoft do not want us to see it all. If we could see it all, then some people could probably steal all the coding and make their own Excel without Microsoft!

    Microsoft only let us see a very very small amount in a clean file.
    Mostly they let us have access to codings that do things when events, like opening, or changing things, happen. But they hide, (make invisible), their coding. But we can add our coding in those places.

    The main macro I did for you I put in the Microsoft coding that works when you change something in a cell. That is why it works automatically when you change something. Not many people know how to do that. Only people like me with big cock and big brain

    The start of the main coding I did for you https://www.excelfox.com/forum/showt...ll=1#post23211 , looks like this:

    Code:
    Private Sub Worksheet_Change(ByVal Target As Range)
    Rem 1 what cell changes don't interest me
     If Target.Cells.Count <> 1 Then Exit Sub '  More than one cell changed, for example by pasiting new range in
     If Target.Row = 1 Then Exit Sub '        '  Row 1 is always header so of no interst for adding data
    ' If Target.Value = "" Then Exit Sub '     '  If we empty a cell we don't want the macro to do anything
     
    Target is the cell or cells that get changed.
    The first few code lines check to see
    _ If you changed more than one cell
    _ or If you are in the first row.
    In those case I exit the macro, since I assume we don’t want to do anything automatically in those cases


    The coding called Sub Worksheet_Change(ByVal Target As Range) is always there in a new file and there is already lots of coding in it. But we can’t see it. Microsoft made all their coding invisible.

    If you look at that macro in a new file it looks like this to us
    Code:
    Private Sub Worksheet_Change(ByVal Target As Range)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    End Sub
    Microsoft have lots of coding in it, but they make that invisible to us. But they let us put extra coding in it.

Similar Threads

  1. Replies: 101
    Last Post: 06-11-2020, 02:01 PM
  2. Delete Filtered Rows Excluding The Header
    By xander1981 in forum Excel Help
    Replies: 5
    Last Post: 04-01-2014, 11:44 PM
  3. Replies: 1
    Last Post: 07-30-2013, 11:08 PM
  4. Lookup and Count Using Pivot Table
    By RobExcel in forum Excel Help
    Replies: 2
    Last Post: 12-21-2012, 11:08 AM
  5. Unique Count on a Filtered Range
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 08-14-2011, 04:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •