LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 234
Default Number format based on number format of another cell in another workbook

Excel 2000

I have two files, one master and one created by opening a text file. The
master file has a list of unique product codes and descriptions in two
columns, the text that is opened has the product codes and I add during the
opening process a look up to the product code to return the product
description, this all works fine. The text file after opening is 7 columns,
product code, product description and 5 columns of numbers.

What I need to do is format the cells (numbers) in the last 5 columns of the
newly opened text file. My thoughts are to add a third column to the master
file whereby I'll have 3 columns: product code, product description and
number format, in the number format column I would format the cell with the
required number format. My issue is, how using VBA do I format the cells in
the newly opened text file where the product code matches that of the
corresponding product code in the master file. The text file can have many
of the same product codes and in some instances, not all of the product
codes.

I had also thought of Conditioning Format but alas, this doesn't cover
number formatting.

Any pointers, snippets of code most welcome.

Thanks, Rob


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
format cell custom Number format Dan Excel Worksheet Functions 2 January 26th 10 05:29 PM
How to set default number format for new workbook PC The Greatest Excel Discussion (Misc queries) 2 August 31st 06 06:18 PM
Custome Number format based on Value Dr. Sachin Wagh Excel Discussion (Misc queries) 2 February 17th 06 11:24 AM
Format a cell with a custom number format Armor Excel Worksheet Functions 4 January 29th 06 11:25 PM
Set number format based on cell contents nospaminlich Excel Discussion (Misc queries) 5 December 8th 05 06:41 PM


All times are GMT +1. The time now is 09:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"