+ Reply to Thread
Results 1 to 1 of 1

Macro for "If Then"

  1. #1
    Registered User
    Join Date
    10-18-2021
    Location
    Dover Ohio
    MS-Off Ver
    MS 2013
    Posts
    7

    Macro for "If Then"

    I have a quiz template that I acquired from a you-tube guy (Randy- Excel for Freelancers) Fantastic work. However I would like to make a couple of small changes to a macro he has set in there. I do not know VBA at all. I can follow along but understanding what to use or when to use it doesn't make any sense to me.

    He has this auto create a file which goes through zapier and then creates a google sheet, then takes that sheet sends it to dropbox as a text file. Great.. i think.... The macro opens the dropbox folder and grabs the file (.txt) and as an array loops through and grabs each line and dumps it into the actual excel file...also Great!.... then kills the file....not so great! This means the file is gone so I cannot update a "master quiz log". Simply removing the "kill" option works except If I forgot that I clicked "check for results" button and click it again... well now I have double the info. I need an IF statement in there somewhere that looks at Column B- "Submitted On" and says IF in Column B any thing that matches what you already have Then skip or do nothing, or somthing... I do not know. But it needs to not import matching "submitted on" info. This info is DD/MM/YY HR/MIN time stamp. so simple IF equals "anything" wont work. IT would have to look at the .txt file first row and match or not match Column B.

    Clear as Mud??? Hopefully I can attach the actual excel file...or a copy of the macro in a text form.

    Thanks in advance for any help on this..
    Attached Files Attached Files

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  3. [SOLVED] Excel 2010 -- "Visual Basic" "Macros" and "Record Macro" all disabled.
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2017, 06:11 AM
  4. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  5. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  6. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  7. How can i copy value from "HTMLText"(EMBED("Forms.HTML:Text","")),using Macro
    By andrewyang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2010, 12:47 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