+ Reply to Thread
Results 1 to 3 of 3

How to position a button correctly when a new row is inserted

  1. #1
    Registered User
    Join Date
    09-19-2008
    Location
    Singapore
    Posts
    41

    How to position a button correctly when a new row is inserted

    Hi All,

    I have written a macro that contains a button, the click of button is supposed to insert a row in the excel. But when the row is inserted, the button is not positioning it correctly and the newly inserted row is hidden behind the button.

    The code used to insert the button is as follows:
    Please Login or Register  to view this content.
    Please help

    Cheers,
    Aswathy
    Attached Files Attached Files
    Last edited by VBA Noob; 09-24-2008 at 01:25 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Aswathy,

    I changed your macro and moved the command button to the row that is blackened. This makes it more visible and keeps it from covering the data.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-19-2008
    Location
    Singapore
    Posts
    41

    Unhappy

    Hi,

    Thanks a lot. Even I was trying the same thing. I have a problem now. The VBA code which I am using to associate the click to the button is throwing some error and closing the app. Not even able to detect which line is causing the problem.

    Please Login or Register  to view this content.
    This itself is failing.
    Any guesses on why its happening.

    Please help me.

    Cheers
    Aswathy

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Fix button position
    By nygwnj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2013, 06:58 AM
  2. position cursor on command button when userform opened
    By iturnrocks in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-09-2008, 01:19 PM
  3. VBA Sub Procedures
    By ladeda063610 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2008, 03:12 AM
  4. Row Command button location
    By GCoder1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2007, 12:12 AM
  5. Option Buttons, copying
    By Dfire in forum Excel General
    Replies: 21
    Last Post: 12-12-2006, 04:53 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