+ Reply to Thread
Results 1 to 3 of 3

How to use VBA Code to auto populate with condition in specific sheet

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    Sudbury
    MS-Off Ver
    Excel 2010
    Posts
    66

    How to use VBA Code to auto populate with condition in specific sheet

    Hi,
    I need help in modifying code below. Currently this code work fine if I paste it in "ThisWorkBook" but for some reason I want to paste in a specific work sheet of workbook.
    I tried by pasting it in specific worksheet but it didn't work. I think it needs some modification to work properly if pasted in work sheet.

    The code is:

    Please Login or Register  to view this content.
    Last edited by ray.kanata; 07-16-2015 at 10:18 AM.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Need help in modifying VB Code

    If you don't know the reason you are doing it, then we wouldn't.

    Guessing that you might want to change the 2nd line to?
    Please Login or Register  to view this content.
    You did not set a value for bIsRun so an IF for it won't be of much use.

  3. #3
    Registered User
    Join Date
    12-12-2013
    Location
    Sudbury
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: Need help in modifying VB Code

    Thanks Kenneth!

    I tried but gave me an error.

    Please find attached files.
    "WorkBook_A" contains VB codes for few different functions.
    Code pasted in Thisworkbook auto increment project number and clear the scoring once submitted;
    Code pasted in Module 1 save file in excel & PDF formats at desktop and delete the code pasted in Thisworbook once submitted;
    Code pasted in Sheet named "Decision Point" is for populating Sheets in WorkBook_B based on selection (Yes, No, On-hold)

    Code pasted in Sheet named "Decision Point" is giving me an error.

    I need help to fix it because my knowledge of VB code is very week.

    Thanks in advance to all

    WorkBook_A.xlsm
    WorkBook_B.xlsx

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Modifying a Macro code
    By PritishD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2015, 01:11 PM
  2. Modifying existing code
    By rhouston08 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-13-2015, 06:03 PM
  3. modifying every other row code
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2015, 01:49 PM
  4. Need Help Modifying Code
    By ayvee0 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2013, 09:34 AM
  5. Help modifying code
    By brawcliffe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2009, 12:08 PM
  6. Help modifying existing VBA code
    By camcafe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2008, 11:02 AM
  7. Help modifying code please.
    By nickm687 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2007, 10:42 AM

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