+ Reply to Thread
Results 1 to 5 of 5

VBA Issues when selecting cell range

  1. #1
    Registered User
    Join Date
    09-28-2011
    Location
    Windsor
    MS-Off Ver
    Excel 2007
    Posts
    15

    VBA Issues when selecting cell range

    I use a spreadsheet that needs the borders changed on a daily basis. The following code is designed to reset a particular range of cells to a basic border as shown below. The issue I am having is with my range selection. It gives me the error code 1004 - Method 'Range' of object '_Global' failed. I can't seem to figure out what the problem is and I was hoping someone could help. Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: VBA Issues when selecting cell range

    try somthing like this
    Please Login or Register  to view this content.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Registered User
    Join Date
    09-28-2011
    Location
    Windsor
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: VBA Issues when selecting cell range

    I edited the code as follows and the following error came up...

    Compile error:

    Wrong number of arguments or invalid property assignment.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: VBA Issues when selecting cell range

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-28-2011
    Location
    Windsor
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: VBA Issues when selecting cell range

    Thanks. Your code worked.

+ 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