+ Reply to Thread
Results 1 to 3 of 3

how to use excel VBA to setup multiple cells with RTD

  1. #1
    Registered User
    Join Date
    04-22-2022
    Location
    Chicago
    MS-Off Ver
    2021
    Posts
    1

    how to use excel VBA to setup multiple cells with RTD

    I have a RTD function that I have been using for years and working fine, now I wonder if there is easy way to create VBA function to set lots of cells with RTD (so I don't have to do copy/paste lots of rows), I created this macro
    Please Login or Register  to view this content.
    When I run it, it indeed works and call ConnectData for each cell to RTD, but then all of them immediately call DisconnectData (I guess when macro end, it clean them up?)
    How/What should I do to make them stay there? If I set up each cell on first row like =mypos(subject, "sn"), ... then copy/paste for multiple rows, they will stay there

    Any hint/help?


    after some try/fail, I got this work, need to set to formula of the cells and that's the key
    Last edited by 6StringJazzer; 04-23-2022 at 10:31 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: how to use excel VBA to setup multiple cells with RTD

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: how to use excel VBA to setup multiple cells with RTD

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark 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. [SOLVED] how to insert modified page setup in print setup
    By JEAN1972 in forum Excel General
    Replies: 1
    Last Post: 01-11-2019, 06:02 AM
  2. [SOLVED] need help with page setup/print Setup on a worksheet
    By laurabach in forum Excel General
    Replies: 9
    Last Post: 04-28-2013, 11:44 PM
  3. [SOLVED] How do I setup multiple lists
    By wfrp in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-12-2006, 03:50 AM
  4. Excel > page setup > Sheet > Print > Cells Error As...
    By tikchye_oldLearner57 in forum Excel General
    Replies: 2
    Last Post: 05-16-2006, 11:35 AM
  5. [SOLVED] How do i setup a macro to clear cells in Excel?
    By TimTam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2006, 10:30 PM
  6. Help with Multiple Worksheet Setup
    By Brenda Rueter in forum Excel General
    Replies: 2
    Last Post: 11-04-2005, 02:50 PM
  7. Replies: 1
    Last Post: 02-09-2005, 08:06 PM

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