Error: Parameter #1 of rrrequires a variable reference, but received a ComObject. Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
cgx5871
Posts: 317
Joined: 26 Jul 2018, 14:02

Error: Parameter #1 of rrrequires a variable reference, but received a ComObject.

03 May 2023, 04:43

Code: Select all

rng:=xl.Selection
rr rng
rr(&rng)
{
}
how to byref xl.range?
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Error: Parameter #1 of rrrequires a variable reference, but received a ComObject.  Topic is solved

03 May 2023, 05:47

prepend an & at the callsite as well

in any case, the correct byref usage is explained in the docs, so maybe read them?

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: No registered users and 20 guests