+ Reply to Thread
Results 1 to 2 of 2

New users : After Open Book and paste valuse

  1. #1
    Registered User
    Join Date
    05-31-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2010
    Posts
    1

    New users : After Open Book and paste valuse

    Hi all,

    I am a new comer in VBA world. Please kindly help me to solve the 101 problem.
    I want to paste 3 value in cells after open the workbook. However, after i click yes, i can't see the value is pasted

    The code is below :




    Please Login or Register  to view this content.
    Last edited by azazelchau; 06-09-2012 at 03:47 PM.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: New users : After Open Book and paste valuse

    It is my guess that the sheet that the code should work on is not active when the workbook is opened, allowing the code to run on the wrong sheet.

    Allowing for that, and cleaning the code up a little.

    Please Login or Register  to view this content.
    Note that the code is set to run on "Sheet2", please change this to the name of your sheet.
    Last edited by jason.b75; 06-09-2012 at 08:06 PM.

+ 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