Excel VBA Introduction Part 53.4 - Replacing Strings

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ต.ค. 2024

ความคิดเห็น • 25

  • @JF098
    @JF098 4 ปีที่แล้ว +1

    You are an absolute gem. I would love to shake your hand one day and tell you that you've taught me literally everything I know about macros. You're very clear, very engaging, very chill, and always one step ahead of what we want to and need to know. A million times, THANK YOU.

    • @WiseOwlTutorials
      @WiseOwlTutorials  4 ปีที่แล้ว

      You are very welcome! Very happy to hear that you've found the videos useful and thank you for taking the time to leave a comment!

  • @oliverbird8320
    @oliverbird8320 7 ปีที่แล้ว +4

    Thank you, Dr.Wise! There is no one out there doing this educational videos. Appreciated

  • @sashatv138
    @sashatv138 5 ปีที่แล้ว +2

    So funny, and so useful!!! Thank you, Andrew!

    • @WiseOwlTutorials
      @WiseOwlTutorials  5 ปีที่แล้ว

      You're welcome Alexander, thanks for watching!

  • @donbogdala5428
    @donbogdala5428 7 ปีที่แล้ว +2

    Wiseowl is the best!

  • @TheMelloPhan
    @TheMelloPhan 5 ปีที่แล้ว +2

    Changing Twilight to Terrible.... Savage.

  • @blakedextraze8680
    @blakedextraze8680 6 ปีที่แล้ว +4

    Tell us what you really think of twilight lol . Great series, Thanks!

  • @jasmeenmalhotra2225
    @jasmeenmalhotra2225 5 ปีที่แล้ว +1

    This is TOO MUCH FUN. Thanks for this great tute. I might even be converted from Leila. Maybe.

    • @johassan6509
      @johassan6509 4 ปีที่แล้ว

      Gharani?

    • @jasmeenmalhotra2225
      @jasmeenmalhotra2225 4 ปีที่แล้ว

      @@johassan6509 yeah, but she's brilliant too. They're both great teachers in their own way.

  • @krn14242
    @krn14242 7 ปีที่แล้ว +1

    Thanks Andrew, very useful.

  • @kashifkhanspecial
    @kashifkhanspecial 5 ปีที่แล้ว +2

    Hi Andrew,
    How are you, I think you will be good with the grace of God, I have one request to you, could you please upload a video tutorial about, how can we use RegulaExpressions in VBA.
    Thanks
    Kashif

  • @chahineatallah2636
    @chahineatallah2636 2 ปีที่แล้ว

    hi wiseowl, first thanks a lot, really great channel for vba, i have small question
    why if i dont put "ts.close " and "ts.nothing" it gives some runtime error with some permission title? is it obligatory to put ts.close and ts=nothing?

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว +1

      I don't know why you're receiving an error. Closing the text stream isn't technically obligatory but it is best practice. Your object variable will automatically become Nothing when it goes out of scope. I'd suggest that closing the textstream is more important than explicitly setting it to Nothing.

  • @josh7297
    @josh7297 7 ปีที่แล้ว

    Could I using the replace function to actually replace a whole cell reference to another cell reference. Say I have this formula in a cell reference and I want to replace a part of the formula. Do I have to use a string or can I use a cell reference?

  • @gisdepartment9934
    @gisdepartment9934 7 ปีที่แล้ว

    One other question if you don't mind. If I export my VB to a .bas file how would I go about running that every day on a excel file that's being updated each day on my network? Could that process be automated as a startup process when I turn my computer on in the morning?

    • @gisdepartment9934
      @gisdepartment9934 7 ปีที่แล้ว

      I will look in to that and let you know how it goes. Thanks again!

  • @gisdepartment9934
    @gisdepartment9934 7 ปีที่แล้ว

    I'm very new to VB and trying to learn it on my own. I successfully replaced spaces with underscores on one of my cells but need to do this on the entire column. How would I go about modifying my current script. Sub ReplacingStrings() Dim s As String
    s = Range("I2").Value
    Debug.Print s
    s = Replace(s, " ", "_")
    s = Replace(s, Chr(10), "")
    Debug.Print s

    End Sub

    • @gisdepartment9934
      @gisdepartment9934 7 ปีที่แล้ว

      That was exactly what I needed and it worked perfectly. Thank you so much for your help.

  • @nuhzakir8896
    @nuhzakir8896 7 ปีที่แล้ว

    Thanks.

  • @987Shadowfax
    @987Shadowfax 6 ปีที่แล้ว

    How to replace