DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Can AHK cut/paste excel cells into fields of another program?  (Read 10,651 times)

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
I'm trying to automate a repetitive task I do at work.  I have an excel sheet with standard columns.  For each individual row, I need to cut and paste the cells into the fields of another application.  Can AHK automate such a thing?  I'm guessing it can, and I'm also assuming that i can figure out how to code it.  Some of the fields are drop-down boxes or fields with their own popup dialogs.  Is that possible to automate?  I just need to know up front before I start getting into it.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Can AHK cut/paste excel cells into fields of another program?
« Reply #1 on: November 15, 2010, 11:28 PM »
Yes, it is.  What you want to do may not be elegant...but it certainly can be done.

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: Can AHK cut/paste excel cells into fields of another program?
« Reply #2 on: November 15, 2010, 11:58 PM »
That's good to know.  Do you think it would be a very hard to do it for someone like me who has never used AHk before?  My background is that I'm familiar with the logic of programming.  I've had experience programming the TI calculators pretty extensively, and I was good with Lisp back in the day.  My point is, I understand the logic, just not the syntax.

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
Re: Can AHK cut/paste excel cells into fields of another program?
« Reply #3 on: November 16, 2010, 12:06 AM »
don't forget about VBA - depending on what you're other application was it may also do what you want
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
Re: Can AHK cut/paste excel cells into fields of another program?
« Reply #4 on: November 16, 2010, 12:27 AM »
don't forget about VBA - depending on what you're other application was it may also do what you want
or a combination of vba and autohotkey.  unless the app you are pasting into is an Office app, in which case VBA alone might be easier.

Do you automatically want to do all the rows in the table, or are you going thru the table and selecting the rows whose cells you want to copy and paste, or do you want to hit a hotkey every time  you see a row you want to copy?

---------------------

Your level of expertise is at least equal to mine, and I've had no problem teaching myself enough VBA and AutoHotkey to do this sort of stuff.  You'll have less trouble than I did.

Original address: https://www.donationcoder.com/forum/index.php?topic=24576.0