Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Hiden Column

I am using the code below to populate the TextBoxes of my UserForm. My
problem is, that "TextBox3.Text = rng(1, 4).Text" refers to a hidden column
so nothing appears in the TextBox3. Is there away around this? While I need
the data in column 4, I do not need it to show on the worksheet.

TextBox1.Text = rng(1, 1).Text
TextBox2.Text = rng(1, 2).Text
TextBox3.Text = rng(1, 4).Text


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Hiden Column

Hi Patrick,

I cannot duplicate your problem. I experience no difficulty in populating a
textbox with text from a hidden column.


---
Regards,
Norman



"Patrick Simonds" wrote in message
...
I am using the code below to populate the TextBoxes of my UserForm. My
problem is, that "TextBox3.Text = rng(1, 4).Text" refers to a hidden column
so nothing appears in the TextBox3. Is there away around this? While I need
the data in column 4, I do not need it to show on the worksheet.

TextBox1.Text = rng(1, 1).Text
TextBox2.Text = rng(1, 2).Text
TextBox3.Text = rng(1, 4).Text



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Hiden Column

Does not work for me. May be some change with Excel 2007. If I unhide the
column the TextBox populates, but not when the column is hiden.


"Norman Jones" wrote in message
...
Hi Patrick,

I cannot duplicate your problem. I experience no difficulty in populating
a textbox with text from a hidden column.


---
Regards,
Norman



"Patrick Simonds" wrote in message
...
I am using the code below to populate the TextBoxes of my UserForm. My
problem is, that "TextBox3.Text = rng(1, 4).Text" refers to a hidden
column so nothing appears in the TextBox3. Is there away around this?
While I need the data in column 4, I do not need it to show on the
worksheet.

TextBox1.Text = rng(1, 1).Text
TextBox2.Text = rng(1, 2).Text
TextBox3.Text = rng(1, 4).Text





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Hiden Column

Found the problem. The cell contained a date had to make the code read as
follows:

TextBox3.Text = rng(1, 4).Value
TextBox3.Text = Format(TextBox3.Text, "mm/dd/yy")

"Patrick Simonds" wrote in message
...
Does not work for me. May be some change with Excel 2007. If I unhide the
column the TextBox populates, but not when the column is hiden.


"Norman Jones" wrote in message
...
Hi Patrick,

I cannot duplicate your problem. I experience no difficulty in populating
a textbox with text from a hidden column.


---
Regards,
Norman



"Patrick Simonds" wrote in message
...
I am using the code below to populate the TextBoxes of my UserForm. My
problem is, that "TextBox3.Text = rng(1, 4).Text" refers to a hidden
column so nothing appears in the TextBox3. Is there away around this?
While I need the data in column 4, I do not need it to show on the
worksheet.

TextBox1.Text = rng(1, 1).Text
TextBox2.Text = rng(1, 2).Text
TextBox3.Text = rng(1, 4).Text







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
how can I find A column when it's hiden? sophie Excel Worksheet Functions 2 March 29th 07 01:49 PM
Why can't I unhide a hiden row JBurke Excel Discussion (Misc queries) 7 January 8th 05 03:59 PM
Is column hiden? ianripping[_100_] Excel Programming 0 November 5th 04 04:24 PM
Is column hiden? ianripping[_99_] Excel Programming 2 November 5th 04 12:08 PM
hiden sheet scrabtree[_2_] Excel Programming 3 August 4th 04 02:55 PM


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