+ Reply to Thread
Results 1 to 2 of 2

2 questions - Saving log to same directory & amending chart in linked workbook. :)

  1. #1
    Registered User
    Join Date
    01-20-2011
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2000 & 2003
    Posts
    2

    Lightbulb 2 questions - Saving log to same directory & amending chart in linked workbook. :)

    Hi guys,

    I'm fairly advanced in Excel but still learning, especially when it comes to VBA. I'm working on a large large project & I'm stuck on two issues...

    1) My file does thousands of calculations in a loop, creates a LOG file, which we run analysis on & save in our strategy tester before repeating the cycle for the next set of data. I manage to piece together some code to read a title for each individual log from within a cell & then save the log, before continuing with the next cycle.

    Code looks like this:

    Please Login or Register  to view this content.
    It's not a major problem, but this always saves the logs into "My Documents", rather than the same folder that the parent excel file is running from. I don't want to specify the directory path as it's running on different computers in different locations. Can anyone help with this?

    2) My second problem is we originally had a sheet called "Bet analyzer" as part of the main workbook. Because this sheet is now almost 80mb (15000 lines of code), it was slowly the pre-calculations in the rest of the file. I've now separated them so the that the code in the main file calls up the Bet Analayzer only when it needs it & closes it after. The bet analyzer has a built in chart that our code would automatically change the number of lines for, according to the amount of data. Since separating the worksheet I'm getting an error.

    The problem line is highlighted & will no longer calculate the rows:

    Please Login or Register  to view this content.
    VBA showing error in line:
    Please Login or Register  to view this content.

    Anyway, sorry to ask many questions. If anyone can help me I'd be very grateful.

    Barry
    Last edited by Barry777; 01-21-2011 at 05:45 AM. Reason: As requested by forum administrator

  2. #2
    Registered User
    Join Date
    01-20-2011
    Location
    Cebu, Philippines
    MS-Off Ver
    Excel 2000 & 2003
    Posts
    2

    Wink Re: 2 questions - Saving log to same directory & amending chart in linked workbook. :

    Thanks everyone for all your help. I found the level of assistance overwhelming at excelforum.com & will be the first to recommend to others.

    Please Login or Register  to view this content.
    Barry

    P.S. Administrators... do what you're best at & close this thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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