nonethefewer: (Default)
I have this ass-long formula that checks invoice things.  I decided to put it into a function, and just call that function.

The cell:

=determineState()

The function (or at least some of it):

Function determineState()

rowNum = ActiveCell.Row

dateSent = Cells(rowNum, 8)
datePaid = Cells(rowNum, 10)

retVal = "I: "

' Has it been paid?
If datePaid <> "" Then
retVal = retVal & "paid"
Else
retVal = retVal & "sent"
End If

determineState = retVal

End Function


And yet, the result does not refresh well.  If at all.

What the hell?
nonethefewer: (Default)
VBScript sucks forever.  FOREVER.
nonethefewer: (Default)
I am using Excel 2007.  I want to get an image and put it in an Image thing on a form.  I can do that fine.  What I can't seem to do is resize the image.

I'm previewing scans, so I want to resize the scan, while retaining the h/w ratio, to fit the Image thing.

How do I do this?
nonethefewer: (Default)
Is there a page, compares basic PHP / VB / Javascript functions?

Looking for indexOf or inStr or strpos or whateverthefuck == frustrating.
nonethefewer: (Default)
I have a little Excel macro that processes reports for me.  At one point, it opens up two Open File dialog boxes in succession.  The first is to the left, the second is off to the right, dunno why.

[code for opening the first file]

MsgBox("And then a step to the ri-i-i-i-i-ight!")

[code for opening the second file]


This was required.
nonethefewer: (Default)
* I've been posting again.

* Rose sent me a link to this good post about making incremental budgetary changes.

* I can't get VBScript to automatically install specific updates for me, and it's bugging me.  I finally find there's totally a way to automatically install certain updates (Windows Defender updates, to be precise), and then I'm codeblocked.  Feh.

* I may be visiting Boston in July.  Josh and I will be in New York the end of March.  This line has a lot of Capitalised Words.

* [livejournal.com profile] deyo sent me this link: WhatTheFont For iPhone IDs Fonts From Text in Snapped Photos

HOLY CRAP.  *in hearts*
nonethefewer: (Default)
Wait.  Does OpenOffice now support VBA code?

*tests*

*grins widely forever*
nonethefewer: (Default)
Today's thing:

I want to make an Outlook form-or-template-or-such that will take a couple of fields and create an email for me.  Not send it, just create it.

I'm posting this to keep track of my projects and if someone else has done this, maybe I could save some time.
nonethefewer: (sweet jesus!)
Holy crap!

I just found some Outlook VBA code that'll convert incoming email to plain text!

!!!
nonethefewer: (Default)
Random bits of life that are not about me being depressed:

* We watched Chronicles of Narnia last night.  B accurately guessed that I would want to put Mr. Tumnus in my pocket and pat him.  *pat pat*

* I am almost finished with my lovely Excel spreadsheetExpandHere's what it does. )

That cut, summarised: I'm a big huge honkin' goddamn dork, and there's no denying it.

* I have a cute kitty.
nonethefewer: (Default)
I just took call stats and made an .asp page to display the stats in realtime.

I also made a few macros in an Excel workbook to transform Gamelo.net games into an Excel sheet, complete with locking, clear unlocked, and checking capabilities.

(Because I'm used to a different site, which checks as you go, and allows for things like dragging the mouse to change a group of cells to a different colour.)

I want to make it so that I don't have to define names for the .asp page - rather, that it gets all uniq--

...

NO DAMMIT

I am going to go EAT FOOD and then go to BED.

*pats projects*

*runs away*
Page generated Jul. 19th, 2025 03:03 pm
Powered by Dreamwidth Studios