+ Reply to Thread
Results 1 to 3 of 3

How to display different data forms kept in same worksheet using macro

  1. #1
    Registered User
    Join Date
    05-23-2009
    Location
    Mauritius
    MS-Off Ver
    Excel 2003
    Posts
    1

    How to display different data forms kept in same worksheet using macro

    I have several small data tables (databases) in a single worksheet. If I select any cell within any of the data table and call for Form, it displays the corresponding data form. But if I do exactly the same through a macro, it displays the top left form, irrespective of the cell (or range) I select elsewhere in the sheet.

    e.g.

    say I have two databases on the same sheet named: forex_rate and fixed_expenses whereby forex_rate is the top left table.

    my code
    Please Login or Register  to view this content.
    ....
    will display the forex_rate form!

    How to rectify?
    Last edited by royUK; 05-23-2009 at 03:34 AM. Reason: add code tags

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How to display different data forms kept in same worksheet using macro

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How to display different data forms kept in same worksheet using macro

    It's usually best to have each table on a different sheet. I think you might need to build your own form, see the example here

    http://www.excel-it.com/vba_examples.htm

    If the tables are identical in structure you could make your own form that works with each table

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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