Consulting

Results 1 to 2 of 2

Thread: Error

  1. #1
    VBAX Newbie
    Joined
    Jun 2007
    Posts
    1
    Location

    Error

    When I renew the sheets by using the button, the existing sheets should be cleared. But it don't work. Could somebody help me? Thanks.

  2. #2
    VBAX Tutor david000's Avatar
    Joined
    Mar 2007
    Location
    Chicago
    Posts
    275
    Location
    You need to convert c to a string.

    [VBA]

    If WksExists(c.Value) Then
    Sheets(CStr(c)).Cells.Clear
    rng.AdvancedFilter Action:=xlFilterCopy, _
    CriteriaRange:=Sheets("Weekoverzicht").Range("Z1:Z2"), _
    CopyToRange:=Sheets(CStr(c)).Range("A1"), _
    Unique:=False


    [/VBA]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •