Closed Thread
Results 1 to 2 of 2

the object invoked has disconnected from its clients

  1. #1
    Registered User
    Join Date
    08-21-2008
    Location
    England
    Posts
    4

    the object invoked has disconnected from its clients

    I posted this question:

    "Say I have the following data all in the same column:

    /****** Object: [Table1]
    AD
    RW
    SD
    TD
    GG
    /****** Object: [Table 2]
    LK
    IM
    HJ
    /****** Object:[Table 3]
    PQ
    WE

    Before each row containing /****** I want to insert a new, empty row. How can I do this?

    Things to note:
    - in between the rows containing '/******' there is a different number of rows of data each time
    - each row containing /****** is followed by data which is different each time e.g. Table 1, Table 2, Table 3"


    The following code was suggested to me:

    "Public Sub InsertBeforeAsterisks()
    Range("A1").Select
    Do Until ActiveCell = ""
    While ActiveCell <> "/******"
    ActiveCell.Offset(1, 0).Select
    Wend
    Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
    ActiveCell.Offset(2, 0).Select
    Loop
    End Sub"

    However, when I try and run this code, Excel stops responding and I get and error: "the object invoked has disconnected from its clients"

    Any ideas how to resolve this? Could it have anything to do with running on Vista?

    Thanks
    Last edited by VBA Noob; 08-22-2008 at 07:47 AM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    excellar,

    Please read forum rules below. Duplicate post closed and you also need to wrap your code

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Store Bitmap Object In Excel 2003 To Access Database?
    By Soar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-03-2008, 02:13 AM
  2. Delete Object when Object number unknown
    By inky in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-24-2008, 06:00 AM
  3. RPC Disconnected error after changin file access in Office 2007
    By armaSANEA in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-23-2008, 03:05 AM
  4. Selecting a picture object
    By Bope in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-02-2008, 12:36 PM
  5. How to delete an inserted object
    By bksanf01 in forum Excel General
    Replies: 2
    Last Post: 03-14-2007, 07:29 AM

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