Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Programmatically reading the excel sheet name--vbscript

Hi Jan Karel Pieterse,
Thanks allot! It worked.

Regards
Rishabh



"Jan Karel Pieterse" wrote:

Hi Rishabh,

Above line of code does the cell (B2) click and fetch the data into a new
sheet. I need to know in which sheet it displays the data.


AFAIK, this action always inserts a new worksheet to the immediate left of
the sheet the PT lives on, so:

Sheets(Sheet2.index-1) should give you that sheet.

Regards,

Jan Karel Pieterse
Excel MVP
http://www.jkp-ads.com
Member of:
Professional Office Developer Association
www.proofficedev.com


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 reading from Excel and formatting MJ Excel Programming 2 March 13th 07 09:42 PM
how to access excel sheet programmatically????? .NetProf Excel Programming 0 January 27th 06 05:08 AM
Removing Add-ins programmatically from Excel 2003 using VBScript Dutch Gemini Excel Programming 3 August 30th 05 03:00 PM
Inserting an Image in an Excel sheet using VBScript. Vishal[_3_] Excel Programming 3 July 28th 05 03:32 PM
Programmatically reading data field values from PivotTable Enrico Campidoglio[_2_] Excel Programming 2 July 13th 05 12:32 PM


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