Reply
 
Thread Tools Display Modes
  #1   Report Post  
montgomerymouse
 
Posts: n/a
Default Problem Working with Named Ranges

Hi,

I'm fairly new to macros. I was able to get a macro to work using absolute
values for a cell position, but was unsuccesful trying to work with name
ranges.

Here's the script that worked with absolute values:

Sub SQ5()

Sheets("Horizontal").Select
Rows(2).ShowDetail = True
Rows(96).ShowDetail = True
Rows(97).ShowDetail = True

End Sub


Here's what I wrote that is *not* working with ranges.


Sub SQ5()

Sheets("Horizontal").Select

Rows(2).ShowDetail = True
Range("IIA").ShowDetail = True
Range("SV").ShowDetail = True

End Sub

Thank you in advance for whatever help you can provide!
  #2   Report Post  
Jezebel
 
Posts: n/a
Default

You'll more likely get an expert response if you post the question to an
Excel forum rather than a Word forum. From my understanding of the Help
topic, ShowDetail is valid only if the referenced range is part of a pivot
table or the range is in a single summary row or column.




"montgomerymouse" wrote in
message ...
Hi,

I'm fairly new to macros. I was able to get a macro to work using

absolute
values for a cell position, but was unsuccesful trying to work with name
ranges.

Here's the script that worked with absolute values:

Sub SQ5()

Sheets("Horizontal").Select
Rows(2).ShowDetail = True
Rows(96).ShowDetail = True
Rows(97).ShowDetail = True

End Sub


Here's what I wrote that is *not* working with ranges.


Sub SQ5()

Sheets("Horizontal").Select

Rows(2).ShowDetail = True
Range("IIA").ShowDetail = True
Range("SV").ShowDetail = True

End Sub

Thank you in advance for whatever help you can provide!



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word User Network Problem Alpine Tom Microsoft Word Help 1 December 17th 04 04:51 PM
Save As is not working due to macro security settings Craig Meritz Microsoft Word Help 1 December 16th 04 03:53 AM
Problem with Hyperlinks, Embed, and Page _ of _ jdh428 Microsoft Word Help 4 December 15th 04 03:00 PM
Font Problem in Outlook with Word as E-mail Editor Linny Microsoft Word Help 0 December 13th 04 03:21 PM
Word 2003 autocomplete not working Cindy M -WordMVP- Microsoft Word Help 2 December 2nd 04 04:35 PM


All times are GMT +1. The time now is 07:58 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"