#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 273
Default Macros Problem

Hi, I run the following macro to convert columns E,G,H,I into Euro's but it
keeps converting coulmn D, which I don't won't to convert. Can anyone help.
Thanks

If Range("D7") = "EURO" Then
Range("E:E,G:G,H:H,I:I").Select
Selection.NumberFormat = "[$ぎ-2] #,##0.00;[Red]-[$ぎ-2] #,##0.00"
Range("A1").Select
End If
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Macros Problem

Hi,

The snippet of code you posted doesn't convert column D so something else
must or it may already be converted.

Mike

"Gary" wrote:

Hi, I run the following macro to convert columns E,G,H,I into Euro's but it
keeps converting coulmn D, which I don't won't to convert. Can anyone help.
Thanks

If Range("D7") = "EURO" Then
Range("E:E,G:G,H:H,I:I").Select
Selection.NumberFormat = "[$ぎ-2] #,##0.00;[Red]-[$ぎ-2] #,##0.00"
Range("A1").Select
End If

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 273
Default Macros Problem

Thanks for the quick response, I just figured out what the problem is. Half
way down the sheet on one of the rows columns D & E had been merged, I
unmerged them and it works fine now.

"Mike H" wrote:

Hi,

The snippet of code you posted doesn't convert column D so something else
must or it may already be converted.

Mike

"Gary" wrote:

Hi, I run the following macro to convert columns E,G,H,I into Euro's but it
keeps converting coulmn D, which I don't won't to convert. Can anyone help.
Thanks

If Range("D7") = "EURO" Then
Range("E:E,G:G,H:H,I:I").Select
Selection.NumberFormat = "[$ぎ-2] #,##0.00;[Red]-[$ぎ-2] #,##0.00"
Range("A1").Select
End If

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
Problem with copy and paste together with macros Camper Joe Excel Worksheet Functions 2 August 24th 06 05:24 PM
tough problem, maybe macros will solve it milos New Users to Excel 6 June 16th 06 10:55 AM
Problem Assigning Macros Rafe Excel Worksheet Functions 2 June 17th 05 06:40 PM
Problem with running Macros Mark Alex Excel Discussion (Misc queries) 1 May 17th 05 02:28 PM
problem:search results negative in excel docs with macros spirit39 Excel Discussion (Misc queries) 0 February 10th 05 11:01 PM


All times are GMT +1. The time now is 01:05 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"