+ Reply to Thread
Results 1 to 6 of 6

Excel as a data base using Macros, VBA

  1. #1
    Registered User
    Join Date
    02-02-2012
    Location
    ILLINOIS
    MS-Off Ver
    Excel 2010
    Posts
    11

    Excel as a data base using Macros, VBA

    Excel as a data base using Macros, VBA
    Is there a way for me to turn this information into a (very primitive) database? For example, for row "H" it says "Parts?" I would like to somehow create a drop down menu that says "yes" or "no". If clicked Yes I would like to automatically be able to fill in the next columns. If clicked "No" I would like to skip to column "Q" and resume the data entry.

    Also notice on row "T" where it says "service schedule date" I would like to create a macro that automatically pulls the necessary information I need (ie: SO, PO, Location Address) into a google apps calendar, that is linked with Outlook.

    I have hundreds of rows of data like this in my real spread sheet as this is what i use to keep track of EVERYTHING since my company does not allow us to use any type of CRM/or work order/scheduling software. I use this to keep track of billing, scheduling, clients, contract expiration dates, payroll, commission percentages, etc.

    I have been trying to learn about macros and VBA to help myself in some way but I am not finding anything specific to what I need. Please help! I am desperate. Any direction, advice, or tips would be GREATLY appreciated!

    Thanks! [ATTACH]139933
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Excel as a data base using Macros, VBA

    Suggest that you add validation to the cells in column H by going to the Data menu, selecting validation and adding the list YES,NO.

    If you paste the following macro

    Please Login or Register  to view this content.
    into the sheet1 tab in the VBA editor (Alt F11), you should get the desired skipping of the pink columns.
    Martin

  3. #3
    Registered User
    Join Date
    02-02-2012
    Location
    ILLINOIS
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Excel as a data base using Macros, VBA

    Great! It worked perfectly! THANK YOU so much! Any ideas about the excel to outlook cal macro?

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Excel as a data base using Macros, VBA

    It's certainly possible to create an outlook appointment or task item. I'm a little unsure about the link to the Google calendar behind it as I've no experience of that. If you create an appointment in Outlook, does it find its way through the Google OK?

  5. #5
    Registered User
    Join Date
    02-02-2012
    Location
    ILLINOIS
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Excel as a data base using Macros, VBA

    Yes through Google apps.

    I did exactly what you said on my "sample database workbook" but when i tried to do it on my real database i isn't working! I can't figure out what i've done wrong

  6. #6
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Excel as a data base using Macros, VBA

    Things to check are that you have pasted the code onto the correct tab and that the columns are in the same place as in the example.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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