Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dev dev is offline
external usenet poster
 
Posts: 66
Default How do I show a sheet programmatically?

I have bunch of cells from different sheets in a datagrid (that datagrid is
attached to Excel workbook thru some addin). If there are 2 cells (like $M$8
from Sheet1 and Sheet2 in that datagrid) - when I click Sheet1$M$8 - then it
should hightlight sheet1 M8 cell and when I click Sheet2$M$8 - then it should
highlight sheet2 M8 cell - but right now when I select Sheet1$M$8 and
Sheet2$m$8 - it highlights same cell (M8 from sheet1) as my sheet1 is active
sheet at this point. How do I dynamically change sheets? any help is really
appreciated!!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default How do I show a sheet programmatically?

Sheet2.Activate

Mike F
"Dev" wrote in message
...
I have bunch of cells from different sheets in a datagrid (that datagrid is
attached to Excel workbook thru some addin). If there are 2 cells (like
$M$8
from Sheet1 and Sheet2 in that datagrid) - when I click Sheet1$M$8 - then
it
should hightlight sheet1 M8 cell and when I click Sheet2$M$8 - then it
should
highlight sheet2 M8 cell - but right now when I select Sheet1$M$8 and
Sheet2$m$8 - it highlights same cell (M8 from sheet1) as my sheet1 is
active
sheet at this point. How do I dynamically change sheets? any help is
really
appreciated!!




  #3   Report Post  
Posted to microsoft.public.excel.programming
dev dev is offline
external usenet poster
 
Posts: 66
Default How do I show a sheet programmatically?

Thanks that worked..

"Mike Fogleman" wrote:

Sheet2.Activate

Mike F
"Dev" wrote in message
...
I have bunch of cells from different sheets in a datagrid (that datagrid is
attached to Excel workbook thru some addin). If there are 2 cells (like
$M$8
from Sheet1 and Sheet2 in that datagrid) - when I click Sheet1$M$8 - then
it
should hightlight sheet1 M8 cell and when I click Sheet2$M$8 - then it
should
highlight sheet2 M8 cell - but right now when I select Sheet1$M$8 and
Sheet2$m$8 - it highlights same cell (M8 from sheet1) as my sheet1 is
active
sheet at this point. How do I dynamically change sheets? any help is
really
appreciated!!





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
Programmatically determining CODE NAME for sheet based upon Sheet Barb Reinhardt Excel Programming 14 August 15th 06 06:49 PM
Unable to move sheet after inserting it programmatically Mike Excel Programming 0 July 17th 06 07:17 PM
how to access excel sheet programmatically????? .NetProf Excel Programming 0 January 27th 06 05:08 AM
Programmatically printing x pages/sheet R Avery Excel Programming 3 May 11th 04 08:21 PM
Is it possible to programmatically add a multi-column list box or drop down box to a sheet? rotor Excel Programming 1 May 3rd 04 09:31 PM


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