#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 68
Default debug code

hi,

Why does this not work?

Range("D & LastRow - 3:I & Lastrow - 3").Style = "Comma"

I want to format this range underneath a table, of which the length
varies.

Cheers,

Harold
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 419
Default debug code

mohavv,

you need to adjust your qotes:

Range("D" & LastRow - 3 & ":I" & Lastrow - 3).Style = "Comma"

that should work for you.

HTH,

Conan


"mohavv" wrote in message
...
hi,

Why does this not work?

Range("D & LastRow - 3:I & Lastrow - 3").Style = "Comma"

I want to format this range underneath a table, of which the length
varies.

Cheers,

Harold



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
Debug Error in Code Karen McKenzie Excel Discussion (Misc queries) 2 May 18th 07 04:25 PM
DeBug Ollie Excel Discussion (Misc queries) 4 April 28th 06 03:17 PM
Using the fx key to debug formulas Bill Excel Discussion (Misc queries) 1 February 24th 06 04:38 AM
Function debug help please Adam Kroger Excel Discussion (Misc queries) 3 November 27th 05 09:09 PM
help with debug Rusty New Users to Excel 3 February 2nd 05 03:16 AM


All times are GMT +1. The time now is 06:47 PM.

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"