LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Msgbox and variants - a deadly combination

Dear

I am attempting to show cells A1 to B4 in a msgbox.

The code I had tried is:

dim c1(6) as integer
dim c5 as variant

c1(6) = Selection.CurrentRegion.Rows.Count
c5 = (Range("A1:B" & (c1(6))))
MsgBox c5

However, this is not working. Any ideas?

Thanks,

Peter

 
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
combination combination? Excel Discussion (Misc queries) 10 January 13th 07 04:08 AM
mismatch error and Variants T_o_n_y Excel Programming 6 April 25th 06 02:53 PM
can I set row/column label as variants? lily Excel Programming 3 April 4th 06 08:54 PM
Variants vs ranges [email protected] Excel Programming 2 December 6th 05 06:45 PM
Array Parameters as Variants Only TheVisionThing Excel Programming 5 March 25th 05 09:52 PM


All times are GMT +1. The time now is 09:06 AM.

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"