CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Jul 2008
    Location
    DC
    Posts
    37

    Display UsedRange of Excel spreadsheet VBScript

    How would I display the used range of an excel spreadsheet?
    I tried:
    Code:
    MsgBox objExcel.Worksheets(1).UsedRange
    This did not work, so how would I do something like this? Is there also some way to get the total number of used columns and total number of used rows? If you could tell me how to do this in Visual Basic Script that would be great. Visual Basic 6 or VB.Net code is ok. I'm assuming they are going to be similar?
    Last edited by dizou; August 22nd, 2008 at 01:35 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured