Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Greg B
 
Posts: n/a
Default How can this code be changed

I use the code below to import information to a userform, As you can see it
is static. What changes can be made to make volitile?


TextBox6.Text = Worksheets("INVOICE").Range("A17").Value

Thanks

Greg


  #3   Report Post  
Greg B
 
Posts: n/a
Default

What I have done is, I have wrote a sales database and when I have finished
it copies the worksheet and renames it. I want the ability to view the
invoice later when needed. I was going to select the sheet and then have
this code for every textbox on the userform grab the information from the
various worksheets.

I know the code originally is for the invoice worksheet only I more wanted
it to be for the active worksheet but I just cant make it happen.

Thanks

Greg
"Don Guillett" wrote in message
...
More info on how you want to get the variable? Input box ?

--
Don Guillett
SalesAid Software

"Greg B" wrote in message
...
I use the code below to import information to a userform, As you can

see
it
is static. What changes can be made to make volitile?


TextBox6.Text = Worksheets("INVOICE").Range("A17").Value

Thanks

Greg






  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default


Set ws =Worksheets("INVOICE")

' do your stuff

ws.Range("A17").Value

'doen't matter what the name is then

--
HTH

Bob Phillips

"Greg B" wrote in message
...
What I have done is, I have wrote a sales database and when I have

finished
it copies the worksheet and renames it. I want the ability to view the
invoice later when needed. I was going to select the sheet and then have
this code for every textbox on the userform grab the information from the
various worksheets.

I know the code originally is for the invoice worksheet only I more wanted
it to be for the active worksheet but I just cant make it happen.

Thanks

Greg
"Don Guillett" wrote in message
...
More info on how you want to get the variable? Input box ?

--
Don Guillett
SalesAid Software

"Greg B" wrote in message
...
I use the code below to import information to a userform, As you can

see
it
is static. What changes can be made to make volitile?


TextBox6.Text = Worksheets("INVOICE").Range("A17").Value

Thanks

Greg








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
Make Change Case in Excel a format rather than formula Kevin Excel Worksheet Functions 1 March 18th 05 08:53 PM
Error trapped only while stepping through the code - Not triggered when run Jeff Excel Discussion (Misc queries) 7 March 7th 05 06:29 PM
Opening a file with code without a set file name jenkinspat Excel Discussion (Misc queries) 1 March 4th 05 10:50 AM
Opening a file with code without a set file name jenkinspat Excel Discussion (Misc queries) 1 March 3rd 05 03:40 PM
Error trapped only while stepping through the code - Not triggered when run Jeff Excel Discussion (Misc queries) 0 February 28th 05 06:26 PM


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