Results 1 to 28 of 28

VBA referring to a different sheet, automatically fill cell based on content of other cell

Threaded View

  1. #23
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: VBA referring to a different sheet, automatically fill cell based on content of other

    The problem was that you had the macros in the worksheet module instead of a regular module. I moved the macros into Module3 and changed the 'Copy Data' button link to the new location of the macro. Your 'copydata' macro now runs and then calls the 'FillColumnsitbof' so both operations are run one after the other. If you want to run them separately, delete the line:
    Call FillColumnsitbof
    in the 'copydata' macro and assign the 'FillColumnsitbof' macro to a separate button. The attached file has all the changes. Hopefully, everything is OK now.
    Attached Files Attached Files

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