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: 84
Default Macros help!

Hi, I am a computer science student, from Portugal, and i need help to Make
KML Files with Excel VBA.

In this part:

For Each cell In [Data2!A6.A50001]
pmName = cell.Offset(0, 2)
longitudeValue = cell.Offset(0, 1)
latitudeValue = cell.Offset(0, 0)

nembalagens2 = cell.Offset(0, 5)
totalcompart2 = cell.Offset(0, 6)

I need to change "For Each cell In [Data2!A6.A50001]" into something like
this: "For Each cell In ['C:\programs Files\Excel\NameOfBook.xlsm'
Data2!A6.A50001], because i want acess to another excel file from the file
where is the macro.

is it possible?

What is the sintax to do this?

Thanks!

 
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
Macros in Personal.xls that would create two toolbars and buttonswith assigned macros Brian Day Excel Programming 1 March 29th 07 11:20 PM
choose default macros Not Enabled / Macros Enable Setting BEEJAY Excel Programming 2 June 30th 06 01:07 PM
weird saving of a document with macros resulting with macros being transfered to the copy alfonso gonzales Excel Programming 0 December 12th 04 09:19 PM
Macro Size Limit / open macros with macros? andycharger[_7_] Excel Programming 6 February 13th 04 02:00 PM
Macros not appearing in the Tools Macro Macros list hglamy[_2_] Excel Programming 5 October 24th 03 09:10 AM


All times are GMT +1. The time now is 07:26 PM.

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"