+ Reply to Thread
Results 1 to 4 of 4

How to output redirect to a cell in a spreadsheet and location based macros.

  1. #1
    Forum Contributor
    Join Date
    07-19-2012
    Location
    Redmond, WA
    MS-Off Ver
    O365
    Posts
    133

    How to output redirect to a cell in a spreadsheet and location based macros.

    First - you need clip.exe (appears to be included in Windows 7)

    (Edit)

    Second, you need to have a clipboard clear function added into a separate module:

    Please Login or Register  to view this content.
    The above code is referenced here.

    Second use the following macro:
    Please Login or Register  to view this content.
    You can get more complicated by using my location based macros:
    Please Login or Register  to view this content.
    Where button is in Cell B2, C2, D2, E2, B16, C16, D16, E16, etc... All buttons will have the same macro...
    What is important is where these point:
    From the button location, + 7 is the IP Address. and + 11 is where I want the output. Or, 11 rows down from the button (x13).
    Last edited by ussenterprise; 06-26-2013 at 01:50 PM. Reason: Clipboard issue resolved. Sort of...

  2. #2
    Forum Contributor
    Join Date
    07-19-2012
    Location
    Redmond, WA
    MS-Off Ver
    O365
    Posts
    133

    Re: How to output redirect to a cell in a spreadsheet and location based macros.

    Okay... after testing (What can I say... I was EXCITED!), this is a little buggy. It looks like the clipboard has issues. I am attempting to work on clearing the clipboard via macro.

    This was apparently related to the If and ElseIf statements. As a single macro, it works okay. See post below for how this was fixed.
    Last edited by ussenterprise; 06-27-2013 at 08:55 AM. Reason: Clarification

  3. #3
    Forum Contributor
    Join Date
    07-19-2012
    Location
    Redmond, WA
    MS-Off Ver
    O365
    Posts
    133

    Re: How to output redirect to a cell in a spreadsheet and location based macros.

    Added a clipboard clear function (Thanks to JBeaucaire for locating one!).

  4. #4
    Forum Contributor
    Join Date
    07-19-2012
    Location
    Redmond, WA
    MS-Off Ver
    O365
    Posts
    133

    Re: How to output redirect to a cell in a spreadsheet and location based macros.

    I'm calling this as solved. Thanks very much to Leith Ross for an explaination of how VBA works! This allowed me to come up with something a little different with the assistance of a co-worker.

    Please Login or Register  to view this content.
    Note that I have added a row. So, these variable will not match up with the variables in the original post. If you've followed along with the location based macros, I'm sure you'll be able to spot it!

    Enjoy!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1