+ Reply to Thread
Results 1 to 6 of 6

Inputs to trigger VBA code

Hybrid View

kal46 Inputs to trigger VBA code 11-03-2013, 07:45 AM
PlankSpank Re: Inputs to trigger VBA code 03-24-2016, 07:55 AM
kal46 Re: Inputs to trigger VBA code 03-27-2016, 02:45 PM
PlankSpank Re: Inputs to trigger VBA code 03-28-2016, 05:54 AM
PlankSpank Re: Inputs to trigger VBA code 03-28-2016, 07:54 AM
PlankSpank Re: Inputs to trigger VBA code 03-28-2016, 02:23 PM
  1. #1
    Registered User
    Join Date
    07-29-2012
    Location
    Guernsey, Channel Islands, UK
    MS-Off Ver
    Excel 2010
    Posts
    13

    Inputs to trigger VBA code

    Hi everyone.

    I am hoping to build a budget timing system. I have found pages on how to build a photocell detector, with a laser, so when the beam is broken it can activate buttons on a stopwatch or when connected to a printer port be connected to a piece of budget timing software.

    My question is if I build one can I write VBA code to accept an input from the photocell if it is connected to the computer? If not, by way of just connected wires to a printer port or such like, then what if I was to use Arduino?

    Excel would be much better as I can then play with the data and also drop it straight into our results sheet. If this is just not possible though I will have to look at software instead.

    Thanks for your help. KAL

  2. #2
    Registered User
    Join Date
    03-23-2016
    Location
    Southfield, Michigan USA
    MS-Off Ver
    2007
    Posts
    27

    Re: Inputs to trigger VBA code

    Arduino would be a good choice for this application. It will provide the real world interface you need to connect the sensors to your computer. You might even be able to get the information to Excel via USB! I've been working on getting Arduino to interface with Excel. If anyone is interested, drop me a message!

  3. #3
    Registered User
    Join Date
    07-29-2012
    Location
    Guernsey, Channel Islands, UK
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Inputs to trigger VBA code

    Thank for the reply. I came to a dead end with this and so haven't done anything. Would still be interested if you have any info on how to integrate with excel.

    Not sure how to build and connect either but I think there was a lot of guides on the web last time I looked.

    Thanks, KAL

  4. #4
    Registered User
    Join Date
    03-23-2016
    Location
    Southfield, Michigan USA
    MS-Off Ver
    2007
    Posts
    27

    Re: Inputs to trigger VBA code

    http://www.instructables.com/id/Send...d-plotting-it/

    https://www.hackster.io/rayburne/ard...g-v-usb-cbf701

    A couple quick search links. It's really early post holiday and I'm still waking up!

    I have some other links I'll pull out later. I have not worked this up yet, Currently doing VBA programming to automate Excel, so the external interface with Arduino is on the back burner for a few. Once I get something going, I'll be sure to follow up here!

  5. #5
    Registered User
    Join Date
    03-23-2016
    Location
    Southfield, Michigan USA
    MS-Off Ver
    2007
    Posts
    27

    Re: Inputs to trigger VBA code

    Double post removed

  6. #6
    Registered User
    Join Date
    03-23-2016
    Location
    Southfield, Michigan USA
    MS-Off Ver
    2007
    Posts
    27

    Re: Inputs to trigger VBA code

    This is the program I was thinking about. Have yet to test it...

    http://www.robertovalgolio.com/siste.../arduino-excel

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Trigger Code by Dropdown
    By rachaelgoldman1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-07-2013, 10:31 AM
  2. Trigger code by Drop Down
    By rachaelgoldman1 in forum Excel General
    Replies: 1
    Last Post: 09-06-2013, 03:02 PM
  3. Allow code to run once then not until it's trigger value appears again
    By ozhunter in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-18-2013, 08:04 AM
  4. How to trigger code execution?
    By alwaysgo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2008, 09:11 AM
  5. Trigger Event Code
    By Shawn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2005, 10:05 AM

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