+ Reply to Thread
Results 1 to 4 of 4

how do I make this code start at the first hidden row in the sheet?

  1. #1
    Forum Contributor
    Join Date
    09-19-2012
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    137

    how do I make this code start at the first hidden row in the sheet?

    The problem is that if this macro is run more than once it creates a second OLEObect on top of the first. If it could start at the first hidden row that would probably solve the problem. Alternately, if it could be made to check for the presence of an OLEobject and only insert the new one if there isn't already one there, that would definately work. thanks in advance for any advice!
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: how do I make this code start at the first hidden row in the sheet?

    hi Wilardio, you can add the following line to your code:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    09-19-2012
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: how do I make this code start at the first hidden row in the sheet?

    Thanks Watersev, but the macro may have been previously run, which would change the count and make the macro shut down. I guess what I'm looking for is something that will check the specific cell where the oleobject is about to be added, and then only add it if it isn't already there. Then I would need the "Next" to run and continue checking and adding objects (where they aren't already present) down to the end of the sheet.
    Last edited by Willardio; 10-27-2012 at 05:38 PM.

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: how do I make this code start at the first hidden row in the sheet?

    maybe sort of this then:

    Please Login or Register  to view this content.

+ 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