+ Reply to Thread
Results 1 to 1 of 1

Data Validation and macro enabled workbook

  1. #1
    Registered User
    Join Date
    08-23-2010
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    30

    Data Validation and macro enabled workbook

    Hi there,

    Pulling my hair out to understand why i cannot save a workbook from .xlsx to .xlsm and carry over my data validations from an outside database workbook? I have tried clearing my data validation and entering it in again, but i receive an error. I have tried naming the cell range in the database workbook, creating a name in the .xmls workbook, and using the range name in the data validation, but again an error. This time it says the name range is not found in the other workbook.

    The database file is saved as .xlsm, and the original workbook that is .xlsx. I wanted to create a few VBA codes, so i needed to save it now as a .xlsm, but i am at my wits end.

    I have attached two files:

    Database file is Master Material List.xlsm
    Workbook is test takeoff.xlsx

    In the workbook, I sometimes want to copy and paste a block, for instance rows 2:6. You will note that there are subtotals found in in cell O6, P6, Q6 and S6. When i copy and paste the block, I want the sum of the subtotals to be added automatically at the bottom Totals row. This is currenty O20, P20, Q20 and S20. To do this easily, i tried to use VBA colorfunction code to add all the like color cells. The code worked great, but then when i wanted to save the file as a .xlsm file to keep my codes, upon reopening the file, it would not read my Master Materil List, which is my data validation in column A, following with lookup values throughout the worksheet. Right now my test takeoff file does not have VBA behind it, therefore my totals row is simply based on the sum function.

    Here is my colorfunction VBA code i was trying to use, and then changed my totals cells to read, for example in O2 =ColorFunction($O$6,O1:O17,TRUE).

    Please Login or Register  to view this content.
    If anyone can offer suggestion, i would greatly appreciate it.

    Thanks,
    Attached Files Attached Files
    Last edited by titantough; 05-12-2012 at 01:53 AM. Reason: more information

+ 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