+ Reply to Thread
Results 1 to 2 of 2

Select method of Range class failure

  1. #1
    Registered User
    Join Date
    08-09-2007
    Posts
    22

    Select method of Range class failure

    I am about to lose my mind on this one.

    I am generating simple code through a macro and want to use it in a button. All I want to do is make a copy of a sheet and then select some fields to make simple modifications. The following is a simplified rep of the code where I run into a problem:

    Sheets("Step 4 - Funding Request Form").Select
    Sheets("Step 4 - Funding Request Form").Copy After:=Sheets(13)
    Range("H2:BX3").Select
    Selection.ClearContents
    Range("H4").Select

    Anytime I try to select a range of cells, I get an error. If I run as a macro it works fine, but when I put the code into a button, it fails.

    PLEASE HELP!! This is driving me crazy....Thanks a lot

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    This works for me. also please wrap any code you post here with Code tags.

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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