Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Generating spaces in code

How do you insert spaces into a Debug.Print stmt via code. That is, I can
manualy put spaces into a text string by manually using the space bar (See
Below - 6 spaces). How would I do this via code? Do I have to use a Loop
with a space character?

Debug.Print "Hello " & TextVariable & " :"

Thanks
EM
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Generating spaces in code

"ExcelMonkey" wrote in message
...
How do you insert spaces into a Debug.Print stmt via code. That is, I can
manualy put spaces into a text string by manually using the space bar (See
Below - 6 spaces). How would I do this via code? Do I have to use a Loop
with a space character?

Debug.Print "Hello " & TextVariable & " :"


If I understand what you're trying to do you can use the VBA Space
function. Space(6) will give you six space characters.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Generating spaces in code

Thanks Rob.

EM

"Rob Bovey" wrote:

"ExcelMonkey" wrote in message
...
How do you insert spaces into a Debug.Print stmt via code. That is, I can
manualy put spaces into a text string by manually using the space bar (See
Below - 6 spaces). How would I do this via code? Do I have to use a Loop
with a space character?

Debug.Print "Hello " & TextVariable & " :"


If I understand what you're trying to do you can use the VBA Space
function. Space(6) will give you six space characters.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm



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
Automatically generating a city name based on entered zip code Lycean Excel Discussion (Misc queries) 1 October 31st 09 06:28 PM
need help in my code on generating chart with dynamic range kiwis Excel Programming 3 June 1st 07 04:57 AM
Generating Code in Excel / Macro Recorder Manipulation [email protected] Excel Programming 2 August 18th 05 03:31 PM
generating sheet with command button & code Bob[_27_] Excel Programming 4 August 4th 03 02:46 PM
help with VBA code re comparing cells and generating message with detailed info Ross[_5_] Excel Programming 2 July 13th 03 01:19 AM


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