Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default export data from excel using VBA

I have set up a button on excel so that when pressed it opens another
application and performs some actions to obtain some data. I used VBA record
to copy my actions in the other application and used preset figures to use
for inputting. However, I now need to know how to instead use figures I will
be inputting in cells in excel. any help would be greatly appreciated.

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default export data from excel using VBA

You can modify your code to get value from cells like this

Dim MyVar as Variant
MyVar = WorkBooks("Bob.xls").Worksheets("Inputs").Range("A 1").Value

then in other code where you have hard coded values, you can replace them
with MyVar (as an example).

--
Regards,
Tom Ogilvy

"rocket" wrote in message
...
I have set up a button on excel so that when pressed it opens another
application and performs some actions to obtain some data. I used VBA

record
to copy my actions in the other application and used preset figures to use
for inputting. However, I now need to know how to instead use figures I

will
be inputting in cells in excel. any help would be greatly appreciated.

thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default export data from excel using VBA

thanks Tom

"Tom Ogilvy" wrote:

You can modify your code to get value from cells like this

Dim MyVar as Variant
MyVar = WorkBooks("Bob.xls").Worksheets("Inputs").Range("A 1").Value

then in other code where you have hard coded values, you can replace them
with MyVar (as an example).

--
Regards,
Tom Ogilvy

"rocket" wrote in message
...
I have set up a button on excel so that when pressed it opens another
application and performs some actions to obtain some data. I used VBA

record
to copy my actions in the other application and used preset figures to use
for inputting. However, I now need to know how to instead use figures I

will
be inputting in cells in excel. any help would be greatly appreciated.

thanks




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
Not able to export data from IE6,7 to MS Excel Jaman Excel Discussion (Misc queries) 0 December 8th 06 02:48 PM
export data to Excel?? a b via OfficeKB.com Excel Discussion (Misc queries) 0 January 15th 05 03:08 PM
Export Excel data to XML Mark Goldin Excel Programming 5 June 11th 04 03:36 PM
Export Data from Excel to SQL German[_2_] Excel Programming 0 February 27th 04 05:07 PM
Excel VBA data export Robin Jootun Excel Programming 3 February 15th 04 08:23 PM


All times are GMT +1. The time now is 07:39 AM.

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"