+ Reply to Thread
Results 1 to 6 of 6

ExecuteExcel4Macro

  1. #1
    Registered User
    Join Date
    02-16-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    78

    ExecuteExcel4Macro

    Hi,

    I am trying to read some values from a closed workbook.

    I use the following code

    Please Login or Register  to view this content.
    But GetData always have this value 'C:\Program Files (x86)\Microsoft Office\Office12\LIBRARY[Upload.xla]Hidden'!R4C1

    instead of getting the value from the address R4C1 in hidden sheet in Upload addin , it always has the as path to address which is "'C:\Program Files (x86)\Microsoft Office\Office12\LIBRARY[CostUpload.xla]Hidden'!R4C1"

    Can u anyone tell me where I am going wrong??
    Last edited by Ranjani; 05-04-2009 at 05:11 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: ExecuteExcel4Macro

    As a minimum, you're missing the backslash after LIBRARY in the path.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-16-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: ExecuteExcel4Macro

    Hi SHg,

    I did try that , i changed data to "'C:\Program Files (x86)\Microsoft Office\Office12\LIBRARY\[CostUpload.xla]Hidden'!R4C1"

    and GetData still holds the value 'C:\Program Files (x86)\Microsoft Office\Office12\LIBRARY\[CostUpload.xla]Hidden'!R4C1.

    Thanks

  4. #4
    Registered User
    Join Date
    02-16-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: ExecuteExcel4Macro

    Hi Shg,

    I removed the enclosing string in
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    and it worked !!

    Thanks Shg,

  5. #5
    Registered User
    Join Date
    12-26-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2003 and 07
    Posts
    16

    Re: ExecuteExcel4Macro

    Can this be modified to find duplicates in the closed workbook and return a message (date taken) Thanks

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: ExecuteExcel4Macro

    rockyw,
    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    Ben Van Johnson

+ 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