Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to update based on format? (Currency)

Hi,

Wondering if someone might be able to help? We have a catalog with 50+
sheets. All sheets have different column layouts for printing
purposes. We need to update the price by a certain % regularly. Is
there someway to create a macro that would identify a cell for
currency format and then multiply it by a percentage from a set
sheet/cell?

I'm new at this and this is just an idea I had not sure if it's
possible but any help would be appreciate it.

Thanks in advance.

Cindy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Macro to update based on format? (Currency)

For each sh in ThisWorkbook.Worksheets
For each entry in sh.UsedRange.Cells
If entry.numerformat="currency" Then entry=entry*.2
Next Entry
Next Sh

I'm not sure if you use the word "currency" or something else, but this is
the basic idea
"Cindy" wrote:

Hi,

Wondering if someone might be able to help? We have a catalog with 50+
sheets. All sheets have different column layouts for printing
purposes. We need to update the price by a certain % regularly. Is
there someway to create a macro that would identify a cell for
currency format and then multiply it by a percentage from a set
sheet/cell?

I'm new at this and this is just an idea I had not sure if it's
possible but any help would be appreciate it.

Thanks in advance.

Cindy

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Macro to update based on format? (Currency)

I thin k you will need something like

If entry.NumberFormat like "$*0.00" Then entry.Value = entry.Value *
1.02

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jared" wrote in message
...
For each sh in ThisWorkbook.Worksheets
For each entry in sh.UsedRange.Cells
If entry.numerformat="currency" Then entry=entry*.2
Next Entry
Next Sh

I'm not sure if you use the word "currency" or something else, but this is
the basic idea
"Cindy" wrote:

Hi,

Wondering if someone might be able to help? We have a catalog with 50+
sheets. All sheets have different column layouts for printing
purposes. We need to update the price by a certain % regularly. Is
there someway to create a macro that would identify a cell for
currency format and then multiply it by a percentage from a set
sheet/cell?

I'm new at this and this is just an idea I had not sure if it's
possible but any help would be appreciate it.

Thanks in advance.

Cindy



Reply
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
How to add new currency Symbol in Format/Cell/Currency NOORZAD Excel Discussion (Misc queries) 2 June 22nd 09 07:59 AM
Macro to import & update rows in spreadsheet based on Ref ID. Harry Seymour[_2_] Excel Discussion (Misc queries) 0 June 9th 08 04:05 PM
Change Currency Format of Cell based on another Cell Simon Excel Worksheet Functions 2 September 2nd 07 04:53 PM
If statement based on currency format juliejg1 Excel Worksheet Functions 4 September 19th 06 03:40 PM
Conversion from currency value to currency text format Frank Kabel Excel Programming 1 August 18th 04 10:06 PM


All times are GMT +1. The time now is 12:34 AM.

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

About Us

"It's about Microsoft Excel"