+ Reply to Thread
Results 1 to 4 of 4

Error in formula !! and I can't see why

  1. #1
    Registered User
    Join Date
    04-06-2006
    Posts
    9

    Error in formula !! and I can't see why

    Hello,

    Could someone tells me why the 1st line works and not the 2nd. I thought it was the same.
    Never the lest to say that I need to use the second format.

    Sheets("WeekData").Range("U500:AG540").Copy Destination:=ActiveCell

    Sheets("WeekData").Range(Cells(500, 20), Cells(540, 32)).Copy Destination:=ActiveCell

    Any Idea ?

    Cheers
    Francois

  2. #2
    Forum Contributor
    Join Date
    03-21-2006
    Posts
    205
    U is the 21st column and AG is the 33rd column

  3. #3
    Registered User
    Join Date
    04-06-2006
    Posts
    9
    Thanks for your message James,

    sorry I didn't check exactly the this but is was as an example only.
    The problem I have is that VBA bugs on the second formula

  4. #4
    Registered User
    Join Date
    04-06-2006
    Posts
    9
    I have found the solution....

    Sheets("WeekData").Range(Sheets("WeekData").Cells(500, 20), Sheets("WeekData").Cells(540, 32)).Copy Destination:=ActiveCell

+ 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