+ Reply to Thread
Results 1 to 2 of 2

Writing to a Excel Table via VBA

  1. #1
    Registered User
    Join Date
    04-30-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    13

    Writing to a Excel Table via VBA

    Hi,

    I wanted to know if this is possible?

    (Made up Data)
    Table1
    CustID | Validated(Y/N) | Comments | Order ID | Product
    1 N TEST 1 ABC
    1 N TEST 2 DEF
    1 N TEST 3 GHI

    So lets say thats my table.. And its being displayed in a Pivot Chart so as you can image "1", "N", "Test" are not being repeated

    OK sorry about the lame example I can't put up the actual one coz its confidential stuff

    So basically I have this table I created from a query (No it's not going to be Data Connection table its going to be completely on its own) as soon as I have figured out how to do this

    So in my pivot chart I want the user to be able double click on that validated field. so it prompts them with a Popup Form
    which contains combobox for Y/N and a comments textbox.

    So when I save I want it to change all of those "N" related to that custID to "Whatever is in the combobox" & all the "TEST" to the "textbox"

    I had this as a data connection where that save button updated the table field in Access DATABASE, but unfortunately this individual is not connected to our network they are on a different network so my Connection String becomes invalid.

    so.. I would like to be able to change the table in excel itself if possible?

    I hope I made sense you can ask me anything if you have a confused as to what i want again.

    [Summary]
    This I want to know:
    • Using VBA to change all Field Values in Column Validated WHERE CustID = 1
    Things I already know & have done:
    • Pivot
    • Excel Userform


    Thanks in advanced


    _____________________________EDITED___________________________

    So far I have only been able to come up with:

    Please Login or Register  to view this content.
    Does anybody have any better idea's that looping through the table?
    Last edited by Rudurk; 07-14-2014 at 05:57 AM. Reason: Added Code... MARKED AS SOLVED(Not really solved, but it looks like it can't be done)

  2. #2
    Registered User
    Join Date
    04-30-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Writing to a Excel Table via VBA

    Guess there is no other way to do it then...

    What do I do now should I close this thread as solved?

+ 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. Writing Table Formulas Using VBA
    By kestefon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2013, 06:08 PM
  2. [SOLVED] help with writing a macro for sorting a table
    By jyl7 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-24-2013, 03:54 PM
  3. [SOLVED] Writing table entries underneath each other
    By dannyjoer in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-12-2013, 03:25 AM
  4. Writing Code for creating pivot table
    By kw42chan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-03-2011, 11:40 AM
  5. retain table formatting when writing excel table to a txt file
    By deanop in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-03-2005, 01:05 AM

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