+ Reply to Thread
Results 1 to 6 of 6

Modify macro statement

  1. #1
    Registered User
    Join Date
    09-28-2007
    Posts
    3

    Modify macro statement

    I wish to be able to modify a macro statement by using a loop - need to change a single word in a statement.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Brandrews,

    You need to give an example or show us some code.

    Sincerely,
    Leith Ross

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Are you sure you actually need to modify the code itself?

  4. #4
    Registered User
    Join Date
    09-28-2007
    Posts
    3
    Yes. I don't know what stock symbols a user will want so I have to allow for the macro to automaticllay select them from a table. The Vlookup function can't work in the statement.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Can you explain what you want to do?
    Hope that helps.

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

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    09-28-2007
    Posts
    3
    In the following statement I need to be able to replace the QT1 with a stock symbol. Since someone may wish to obtain several sets of data, for several symbols, the replacement will have to be done through a loop.

    Workbooks.Open Filename:= _
    "http://ichart.finance.yahoo.com/table.csv?s=QT1&a=07&b=25&c=2006&d=08&e=24&f=2007&g=d&ignore=.csv"

+ 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