+ Reply to Thread
Results 1 to 4 of 4

With Statement Questions

  1. #1
    Forum Contributor
    Join Date
    06-18-2007
    Location
    Kiama, Australia
    MS-Off Ver
    365
    Posts
    119

    With Statement Questions

    Hi everybody,

    I have two (2) questions.

    1.
    Can you copy a range within one "With" statement and paste it in another "With" statement immediately following the first? I've tried and "CutCopyMode" seems to turn off when the first "With" statement is ended.

    2.
    The following code was originally written to run outside a "With" statement. I have placed it in a "With" statement but I know the syntax is wrong on several lines. Can anybody give me the correct syntax?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    can you be a little more precise/ Yoour code doesn't copy anything, state what you want to copy & where you want to paste to.
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    06-18-2007
    Location
    Kiama, Australia
    MS-Off Ver
    365
    Posts
    119
    royUK,

    Sorry it was 1:30am and brain fade/frustration had set in.
    I'm new to VBA which doesn't help either.
    Hopefully this will give you a clearer picture.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I don't think you need to add the actual pasting/sorting to the first With Statement.

+ 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