#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Boomarks

Hi

We are creating bookmarks on word document and we fill the values from xml
file to word document using vb6. same like we need to do on excel file. i
dont know the whats the equalient bookmark concept in excel. can any one give
me idea?

thanks
bala
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Boomarks

The closest thing to a bookmark in Excel is a range name. To
create a name with code, use something like the following:

ActiveWorkbook.Names.Add Name:="TheName", RefersTo:=Range("A1")

To use the name, use code like

Range("TheName").Value = 123


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Bala" wrote in message
...
Hi

We are creating bookmarks on word document and we fill the
values from xml
file to word document using vb6. same like we need to do on
excel file. i
dont know the whats the equalient bookmark concept in excel.
can any one give
me idea?

thanks
bala



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Boomarks

Thats great! Thank you so much.

I have an one question. ok first i'll create a name like "TheName" and i
filled some values like 123. now i close the excel sheet. and i'll open the
excel thru Vb6 and now can i read the 123 value using "TheName" name like
word bookmark.

Thanks
Bala

"Chip Pearson" wrote:

The closest thing to a bookmark in Excel is a range name. To
create a name with code, use something like the following:

ActiveWorkbook.Names.Add Name:="TheName", RefersTo:=Range("A1")

To use the name, use code like

Range("TheName").Value = 123


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Bala" wrote in message
...
Hi

We are creating bookmarks on word document and we fill the
values from xml
file to word document using vb6. same like we need to do on
excel file. i
dont know the whats the equalient bookmark concept in excel.
can any one give
me idea?

thanks
bala




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



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