Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Print on worksheet

Hi! I have a simple problem. I want to print a certain value in on a
worksheet in a loop. For each loop I want to print on one cell below the
previous one. However there is something wrong with the line below, it does
not write anything on the worksheet. pls help!


Worksheets("Settings").Range("a1").Offset(1, k) = strDate

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 373
Default Print on worksheet

You could put this line in before your line to see which cell you're
addressing:
msgbox Worksheets("Settings").Range("a1").Offset(1, k).address
And you could add this line to see what strDate is:
msgbox strDate
Or, to see the date formatted as a date,
msgbox format(strdate,"mm/dd/yy")
James
"Arne Hegefors" wrote in message
...
Hi! I have a simple problem. I want to print a certain value in on a
worksheet in a loop. For each loop I want to print on one cell below the
previous one. However there is something wrong with the line below, it
does
not write anything on the worksheet. pls help!


Worksheets("Settings").Range("a1").Offset(1, k) = strDate



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Print on worksheet

Add .Value
Worksheets("Settings").Range("a1").Offset(1, k).Value = strDate

see if that works

Mike F
"Arne Hegefors" wrote in message
...
Hi! I have a simple problem. I want to print a certain value in on a
worksheet in a loop. For each loop I want to print on one cell below the
previous one. However there is something wrong with the line below, it
does
not write anything on the worksheet. pls help!


Worksheets("Settings").Range("a1").Offset(1, k) = strDate



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
Chart doesn't print w/worksheet properly but will print by itself Vera Excel Discussion (Misc queries) 2 November 7th 08 05:49 PM
how do u print back2back print of different worksheet in exel. Nitin D Excel Worksheet Functions 0 May 23rd 08 01:57 PM
print a specific area within a worksheet by clicking on print? honclub Excel Worksheet Functions 1 October 29th 04 03:22 AM
Multiple print areas, one worksheet -need to print to PDF! mohagany19 Excel Programming 0 October 6th 04 11:54 PM
Print Macro that will Print Entire worksheet except.... Ron de Bruin Excel Programming 0 July 1st 04 04:26 PM


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