+ Reply to Thread
Results 1 to 6 of 6

Macro Button With Embedded Variables

  1. #1
    Registered User
    Join Date
    01-18-2014
    Location
    Seychelles
    MS-Off Ver
    Excel 2007
    Posts
    9

    Macro Button With Embedded Variables

    Dear Excel Community

    Attached is a macro that Pierre Leclerc help create. I need the following modification please

    ◘On the Analysis Tab, can we in Column I have an embedded table that will allow us to change the parameters in the macro:

    Please Login or Register  to view this content.
    I may need to change the 1000 or 0.01 easily to other numbers so if I change the parameters and click RUN Button it will update the Analysis Tab

    ◘Also have a RUN Button to have this working work
    [/COLOR]
    Thanks a million
    Attached Files Attached Files
    Last edited by FDibbins; 01-25-2014 at 01:31 AM. Reason: Clarification

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro Button With Embedded Variables

    see attached file
    Attached Files Attached Files
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    01-18-2014
    Location
    Seychelles
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Macro Button With Embedded Variables

    Patel45

    Thanks for doing this. There is an issue with the file in that if I enter a country in the Data tab and click Run it picks the country - that is OK

    However, if I then delete the country and click Run, it still appears in the Data tab

    Please see attached file in that I entered Mauritius and then deleted it, but it still appearing

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro Button With Embedded Variables

    I'm sorry but I solved the parameters problem, I don't know the goal of your macro

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Macro Button With Embedded Variables

    Hi, Forex-Forex,

    However, if I then delete the country and click Run, it still appears in the Data tab
    There is no deleting of the old result on Sheet Analysis which will feature that behaviour for sure: starting on Row 3 the new data will be transferred and overwrite existing data but not take care to delete the old one.

    Please Login or Register  to view this content.
    @patel45
    I don't know the goal of your macro
    You donīt need to, you just should have deleted Mauritius on Sheet "Data" and looked at the results on Sheet "Analysis" as TO has done.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  6. #6
    Registered User
    Join Date
    01-18-2014
    Location
    Seychelles
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Macro Button With Embedded Variables

    Thanks everyone for the contributions

+ 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. Slightly complex macro
    By Apophis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-21-2014, 09:37 AM
  2. Modifying Macro
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2010, 04:49 PM
  3. Modifying Macro
    By CLR in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 07:05 PM
  4. Modifying Macro
    By CLR in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 11:05 AM
  5. [SOLVED] Modifying Macro
    By carl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 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