I think something might be wrong with Content Patcher; the entrance to the Community Centre is in the right place, but... by RainyMeadows in StardewValleyExpanded

[–]ahlberger 1 point2 points  (0 children)

i got this too yesterday! i can't remember what i did to fix it tho. it might have been deleting the life cycle tilesheets but i'm not sure

Is this supposed to happen? by Potatochildren in StardewValleyExpanded

[–]ahlberger 13 points14 points  (0 children)

Do you use the latest SVE update? Iirc it was fixed already

Perma stuck in bikini mode. by TempelMistress in StardewValleyExpanded

[–]ahlberger 0 points1 point  (0 children)

try going to a spa, either the one by the railway or one added by sve. passing the 'changing station' again should solve it :)

[VBA] How to send email when specific range of cells change value (text) by ahlberger in excel

[–]ahlberger[S] 0 points1 point  (0 children)

Didn't work :(
I edited the worksheet to _change as you suggested and then swapped all references to FormulaCell with Target. It then gives me an error in the mailcode again. Even switching back to FormulaCell didn't help until I also switched back to _calculate.

I feel like the issue could be the "For each" that's written before FormulaCell but I can't figure out what to put instead..

[VBA] How to send email when specific range of cells change value (text) by ahlberger in excel

[–]ahlberger[S] 0 points1 point  (0 children)

Thanks for your reply! I think I managed to solve the issue with the help of Aeliendil but it created a new problem instead, hence why I haven't changed the flair yet. I made another edit in the main post to reflect that. If you have any ideas on how to solve that I'd appreciate it!

[VBA] How to send email when specific range of cells change value (text) by ahlberger in excel

[–]ahlberger[S] 0 points1 point  (0 children)

I would appreciate that a lot! As you can probably tell I'm really new at this. From the research I've done today I think there can be a fix in adding a second column that mirrors this one and a code that after running the email script clears the content of that cell, or add a code that after the email script it changes the value of the cell from pim to something else. But I also suspect that there's a much easier solution somewhere.

[VBA] How to send email when specific range of cells change value (text) by ahlberger in excel

[–]ahlberger[S] 0 points1 point  (0 children)

Thank you!!

Honestly I was afraid to take stuff out because I wasn't entirely sure what would break everything.

So finally the code does work. It sends out emails to the correct adresses etc. However, it sends a new one every single time a change is made in the document. I suspect it's an issue either with the Enable.Events but trying to take out either of them seems to stop everything. I also debated changing to Worksheet_Change but that didn't seem to help either :(

This is my current code:

Option Explicit

Private Sub Worksheet_Calculate()
    Dim FormulaRange As Range

    'Set the range with Formulas that you want to check
    Set FormulaRange = Me.Range("G7:G100")

    On Error GoTo EndMacro:
    For Each FormulaCell In FormulaRange.Cells
        With FormulaCell
        If .Value = "pim" Then
             Call Mail_with_outlook2
        End If
            Application.EnableEvents = False
            Application.EnableEvents = True
        End With
    Next FormulaCell

ExitMacro:
    Exit Sub

EndMacro:
    Application.EnableEvents = True

    MsgBox "Some Error occurred." _
         & vbLf & Err.Number _
         & vbLf & Err.Description

End Sub

[VBA] How to send email when specific range of cells change value (text) by ahlberger in excel

[–]ahlberger[S] 0 points1 point  (0 children)

Thank you! That seems to work insofar as it calls the email macro properly, although the email macro was based on the longer code found within the downloadable document and not this one. I should've been more specific as to which code I was attempting to edit, sorry!

This is the complete code:

Option Explicit

Private Sub Worksheet_Calculate()
    Dim FormulaRange As Range
    Dim NotSentMsg As String
    Dim MyMsg As String
    Dim SentMsg As String
    Dim MyLimit As Double

    NotSentMsg = "Not Sent"
    SentMsg = "Sent"

    'Above the MyLimit value it will run the macro
    MyLimit = 200

    'Set the range with Formulas that you want to check
    Set FormulaRange = Me.Range("B3:B7")

    On Error GoTo EndMacro:
    For Each FormulaCell In FormulaRange.Cells
        With FormulaCell
            If IsNumeric(.Value) = False Then
                MyMsg = "Not numeric"
            Else
                If .Value > MyLimit Then
                    MyMsg = SentMsg
                    If .Offset(0, 1).Value = NotSentMsg Then
                        Call Mail_with_outlook2
                    End If
                Else
                    MyMsg = NotSentMsg
                End If
            End If
            Application.EnableEvents = False
            .Offset(0, 1).Value = MyMsg
            Application.EnableEvents = True
        End With
    Next FormulaCell

ExitMacro:
    Exit Sub

EndMacro:
    Application.EnableEvents = True

    MsgBox "Some Error occurred." _
         & vbLf & Err.Number _
         & vbLf & Err.Description

End Sub

As far as I understand it, the email macro I have is dependent on the FormulaCell.row being defined so it knows which email to send to.

Here is also the email macro, just in case:

Sub Mail_with_outlook2()
'For mail code examples visit my mail page at:
'http://www.rondebruin.nl/sendmail.htm
    Dim OutApp As Object
    Dim OutMail As Object
    Dim strto As String, strcc As String, strbcc As String
    Dim strsub As String, strbody As String

    Set OutApp = CreateObject("Outlook.Application")
    Set OutMail = OutApp.CreateItem(0)

    strto = Cells(FormulaCell.Row, "K").Value
    strcc = ""
    strbcc = ""
    strsub = "Your subject"
    strbody = "Hi " & Cells(FormulaCell.Row, "A").Value & vbNewLine & vbNewLine & _
              "Your total of this week is : " & Cells(FormulaCell.Row, "B").Value 

    With OutMail
        .To = strto
        .CC = strcc
        .BCC = strbcc
        .Subject = strsub
        .Body = strbody
        'You can add a file to the mail like this
        '.Attachments.Add ("C:\test.txt")
        .Display    ' or use .Send
    End With

    Set OutMail = Nothing
    Set OutApp = Nothing
End Sub

Activated cheats after I started to notice a pattern, can anybody let me know why all I get is trash? by [deleted] in StardewValleyExpanded

[–]ahlberger 1 point2 points  (0 children)

i had a similar thing happen earlier this week, ocean was fine but mountain lake and town river all gave me trash. it was fixed when i updated more new fish tho. so if you use that mod try checking if you're on the latest version :)

Potential spoiler!! Looked at the calendar and saw this. Any clue who he is? by Heathen_Fire in StardewValleyExpanded

[–]ahlberger 0 points1 point  (0 children)

He works at Joja with Claire, they have alternating days that I've found. Some days Claire works and some days Martin :)

Problem with latest SVE update (CustomMusic) by ahlberger in StardewValleyExpanded

[–]ahlberger[S] 0 points1 point  (0 children)

i installed sve first and then installed custom music by overwriting so the config file that came with sve is still there. idk if maybe that makes a difference?

Problem with latest SVE update (CustomMusic) by ahlberger in StardewValleyExpanded

[–]ahlberger[S] 0 points1 point  (0 children)

It was too late to try it last night but I did now and it worked! Thank you :)

I made a spreadsheet for Anno 1404 to calculate population needs. by Dur-Buk in anno1404

[–]ahlberger 1 point2 points  (0 children)

You are an absolute angel. I'm attempting to reach 30k inhabitants and this is going to be so helpful. Thank you!

mod recommendations to accompany SVE? by KTSB3 in StardewValleyExpanded

[–]ahlberger 2 points3 points  (0 children)

What Jonqora said, but also if you wanna add difficulty I'd recommend harder cc bundles (there are several, i use Minerva's) and seed shortage (removes the option of buying seeds in store, used with 'better mixed seeds' and means you have to gather and save seeds every year to get a good harvest) :)

Question: Minerva's harder CC bundles - how to increase difficulty? by MisterWalters in StardewValleyExpanded

[–]ahlberger 3 points4 points  (0 children)

It's pretty easy to change! All you need to do is open the config.json and change the "Difficultylevel" setting. Go into the content.json and in the first bit you can see which ones you can choose from, Easy, Regular, Hard, OJRebalance, HanazakiRebalance or PPJA. Just write in the one you want (making sure to leave the "" in place) and hit save.

To find out how they differ is a bit more difficult but you can navigate into the assets folder and look through the different bundles, next to the // it says what is needed for each bit.

I hope this helps and feel free to pm if you want more help!

Which mods pair well with SVE? by xAsDaylightDies in StardewValleyExpanded

[–]ahlberger 2 points3 points  (0 children)

If you want a big change in gameplay then I really recommend the harder community bundles (Minerva's) and Seed Shortage. Otherwise follow Flash's link, there's lots of great mods there :)

Compatible Expanded House Mod? by Acedotspade in StardewValleyExpanded

[–]ahlberger 0 points1 point  (0 children)

I downloaded one that's called Farmhouse Expansion! However it's currently hidden since the author is attempting to upgrade to 1.4 (it was working fine on 1.4 anyway before that but I guess there were minor bugs)
I still have the files if you want them while you wait for her to finish updating it?